rocksdb/include/rocksdb
Yueh-Hsuan Chiang ccaedd16d4 Enable log info with different levels.
Summary:
* Now each Log related function has a variant that takes an additional
  argument indicating its log level, which is one of the following:
 - DEBUG, INFO, WARN, ERROR, FATAL.

* To ensure backward-compatibility, old version Log functions are kept
  unchanged.

* Logger now has a member variable indicating its log level.  Any incoming
  Log request which log level is lower than Logger's log level will not
  be output.

* The output of the newer version Log will be prefixed by its log level.

Test Plan:
Add a LogType test in auto_roll_logger_test.cc

 = Sample log output =
    2014/02/11-00:03:07.683895 7feded179840 [DEBUG] this is the message to be written to the log file!!
    2014/02/11-00:03:07.683898 7feded179840 [INFO] this is the message to be written to the log file!!
    2014/02/11-00:03:07.683900 7feded179840 [WARN] this is the message to be written to the log file!!
    2014/02/11-00:03:07.683903 7feded179840 [ERROR] this is the message to be written to the log file!!
    2014/02/11-00:03:07.683906 7feded179840 [FATAL] this is the message to be written to the log file!!

Reviewers: dhruba, xjin, kailiu

Reviewed By: kailiu

CC: leveldb

Differential Revision: https://reviews.facebook.net/D16071
2014-02-26 14:41:28 -08:00
..
c.h A few more C API functions. 2014-02-25 10:32:28 -08:00
cache.h Merge branch 'master' into performance 2014-01-28 10:35:55 -08:00
compaction_filter.h CompactionContext to include is_manual_compaction 2014-02-12 12:24:18 -08:00
comparator.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
db.h Expose the table properties to application 2014-02-13 16:28:21 -08:00
env.h Enable log info with different levels. 2014-02-26 14:41:28 -08:00
filter_policy.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
flush_block_policy.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
iterator.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
ldb_tool.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
memtablerep.h Reduce malloc of iterators in Get() code paths 2014-02-11 10:32:51 -08:00
merge_operator.h Introduce MergeContext to Lazily Initialize merge operand list 2013-12-11 11:37:28 -08:00
options.h Support for LZ4 compression. 2014-02-08 14:15:51 -08:00
perf_context.h Revert "Allow users to profile a query and see bottleneck of the query" 2013-11-21 17:40:39 -08:00
slice_transform.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
slice.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
statistics.h Expose the table properties to application 2014-02-13 16:28:21 -08:00
status.h IOError cleanup 2014-02-12 11:42:54 -08:00
table_properties.h Support prefix seek in UserCollectedProperties 2014-02-12 13:14:59 -08:00
table.h Add more black-box tests for PlainTable and explicitly support total order mode 2014-02-12 17:37:22 -08:00
transaction_log.h Initialize sequence number in BatchResult - issue #39 2013-12-20 10:01:12 -08:00
types.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
universal_compaction.h Moving Some includes from options.h to forward declaration 2014-01-24 17:16:22 -08:00
write_batch.h Fix the return type of WriteBatch::Data(). 2014-01-14 20:24:48 -08:00