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
..
2014-01-30 22:10:10 -08:00
2014-01-30 22:10:10 -08:00
2014-01-30 22:10:10 -08:00
2014-01-06 11:11:19 -08:00
2014-01-02 16:43:35 -08:00
2014-02-12 11:42:54 -08:00
2013-10-23 14:38:52 -07:00
2013-11-16 11:21:34 +00:00
2014-01-14 22:03:57 -08:00
2014-02-25 17:47:37 -08:00
2014-02-26 14:41:28 -08:00
2014-01-17 12:46:06 -08:00
2014-01-17 12:46:06 -08:00
2014-02-08 14:15:51 -08:00
2014-02-12 11:42:54 -08:00
2013-12-03 12:42:15 -08:00
2014-01-17 12:46:06 -08:00
2014-02-25 17:47:37 -08:00
2014-02-25 17:47:37 -08:00