Glog parameter Description

Source: Internet
Author: User

Resolve these parameters to use gflags to ensure that you use the Glog support gflags.

Logtostderr (bool, default=false)
Whether to output the log to stderr.
Note: This parameter can be set to true,1 or Yes, but can also be set to False, 0 or No.
Alsologtostderr (bool, default=false)
In addition to outputting log information to the log file, it also outputs to stderr. Colorlogtostderr (bool, default=false)
Output color log information (requires terminal support).
stderrthreshold (int, default=2, which is ERROR)
Logs greater than or equal to this log level are output to stderr in addition to the log file.
info:0 warning:1 Error:2 Fatal:3
alsologtomail (String, default= "")
Also output log information to this mailbox.
Log_prefix (bool, default=true)
Output the log prefix before each log message.
minloglevel (int, default=0, which is INFO)
Only log information that is greater than or equal to this log level is output. logbuflevel (int, default=0)
The cache is less than or equal to this level of log information. (-1 means no cache; 0 indicates that only info-level logs are cached; ...)
logbufsecs (int, default=30)
Log information is cached for so many seconds.
logmaillevel (int, default=999)
Send log information that is greater than or equal to this level to the specified mailbox. (0 means all logs are sent; 3 means only fatal-level logs are sent; ...)
Logmailer (String, default= "/bin/mail")
Use this email to send e-mail. Log_dir (String, default= "")
Log file output directory, if not set, the log file is stored by default in the/tmp directory.
Log_link (String, default= "")
Link the log file to this directory. max_log_size (int, default=1800)
Maximum log file size in megabytes (MB). A value of 0 is changed to 1 by default.
Stop_logging_if_full_disk (Boo, Default=false)
If the disk is full, stop writing logs to the disk. log_backtrace_at (String, default= "")
Backtracking occurs when the output log information is file:linenum. V (int, default=0)
VLOG (m) displays all log information that is less than or equal to M. This parameter will be overwritten by--vmodule.
vmodule (String, default= "")
The log configuration for each module. Format <module name>=<log Level> For more information see Https://google-glog.googlecode.com/svn/trunk/doc/glog.html#verbose

Glog parameter Description

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.