Update glog & default flags

This commit is contained in:
John Zhao 2018-07-19 15:46:19 +08:00
parent 6a82b06b84
commit b2bd1f389d
2 changed files with 20 additions and 4 deletions

View File

@ -25,14 +25,30 @@ struct glog_init {
glog_init(int argc, char *argv[]) { glog_init(int argc, char *argv[]) {
(void)argc; (void)argc;
// FLAGS_logtostderr = true; // Set whether log messages go to stderr instead of logfiles
FLAGS_alsologtostderr = true; FLAGS_logtostderr = true;
// Set whether log messages go to stderr in addition to logfiles.
// FLAGS_alsologtostderr = true;
// Set color messages logged to stderr (if supported by terminal).
FLAGS_colorlogtostderr = true; FLAGS_colorlogtostderr = true;
// FLAGS_log_dir = "."; // Log suppression level: messages logged at a lower level than this
// are suppressed.
FLAGS_minloglevel = google::INFO;
// If specified, logfiles are written into this directory instead of the
// default logging directory.
FLAGS_log_dir = ".";
// Sets the maximum log file size (in MB).
FLAGS_max_log_size = 1024; FLAGS_max_log_size = 1024;
// Sets whether to avoid logging to the disk if the disk is full.
FLAGS_stop_logging_if_full_disk = true; FLAGS_stop_logging_if_full_disk = true;
// Show all VLOG(m) messages for m <= this.
// FLAGS_v = 2; // FLAGS_v = 2;
google::InitGoogleLogging(argv[0]); google::InitGoogleLogging(argv[0]);

2
third_party/glog vendored

@ -1 +1 @@
Subproject commit a97d6b0e1ce34e4e1956c63de8ddd325ff164512 Subproject commit 8d7a107d68c127f3f494bb7807b796c8c5a97a82