-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the logtostdout and colorlogtostdout flag to allow logging to stdout
Currently, glog allowed to use logtostderr to send error logs to stderr, but many log tailers would regard logs from stderr as error logs. So we want to send non-error logs to stdout and only send error logs to stderr according to the stderrthreshold.
- Loading branch information
Showing
6 changed files
with
244 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log info | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log warning | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if warning | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info expr | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info every 1 expr | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info expr | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info every 1 expr | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info expr | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info every 1 expr | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log info | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if -1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info expr | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if info every 1 expr | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] log_if error every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] vlog_if 0 every 1 expr | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_STRING: reported info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_STRING: reported warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_STRING: reported error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Captured by LOG_STRING: LOG_STRING: collected info | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Captured by LOG_STRING: LOG_STRING: collected warning | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Captured by LOG_STRING: LOG_STRING: collected error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: collected info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: collected warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: collected error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: reported info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: reported warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: reported error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Captured by LOG_TO_SINK: | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: collected info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: collected warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK: collected error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK_BUT_NOT_TO_LOGFILE: collected info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK_BUT_NOT_TO_LOGFILE: collected warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_SINK_BUT_NOT_TO_LOGFILE: collected error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_STRING: collected info | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Captured by LOG_TO_STRING: LOG_TO_STRING: collected info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_STRING: collected warning | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Captured by LOG_TO_STRING: LOG_TO_STRING: collected warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_STRING: collected error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Captured by LOG_TO_STRING: LOG_TO_STRING: collected error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_STRING: reported info | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_STRING: reported warning | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] LOG_TO_STRING: reported error | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Sink is sending out a message: IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Have 0 left | ||
EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 2 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Sink is sending out a message: EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 2 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Have 0 left | ||
WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 3 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Sink is sending out a message: WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 3 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Have 0 left | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Sink capture: IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 1 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Sink capture: EYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 2 | ||
IYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Sink capture: WYEARDATE TIME__ THREADID logging_unittest.cc:LINE] Message 3 |
Oops, something went wrong.