-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc] add glog curl command #1235
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this, English version see #1237
...istration/3.deploy-and-administrations/server-administration/configuration-statements/log.md
Outdated
Show resolved
Hide resolved
...istration/3.deploy-and-administrations/server-administration/configuration-statements/log.md
Outdated
Show resolved
Hide resolved
...istration/3.deploy-and-administrations/server-administration/configuration-statements/log.md
Outdated
Show resolved
Hide resolved
...istration/3.deploy-and-administrations/server-administration/configuration-statements/log.md
Show resolved
Hide resolved
...istration/3.deploy-and-administrations/server-administration/configuration-statements/log.md
Outdated
Show resolved
Hide resolved
> curl "http://127.0.0.1:12000/set_flags?flag=minloglevel&value=0" | ||
``` | ||
|
||
或者**关闭** 所有的日志打印(仅保留 FATAL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra space
|
||
### glog 中的两个主要参数 | ||
|
||
- minloglevel 0-4: 对应的日志级别分别为 INFO(DEBUG),WARING,ERROR,FATAL。通常在调试环境设置为 0,生产环境设置为1。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space missing before 1
23e9b80
to
a04862c
Compare
why the toc is updated, but this pr is not merged? |
|
||
### glog 中的两个主要参数 | ||
|
||
- minloglevel 0-4: 对应的日志级别分别为 INFO(DEBUG),WARING,ERROR,FATAL。通常在调试环境设置为 0,生产环境设置为 1。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minloglevel 0-3? numbers of severity levels INFO, WARNING, ERROR, and FATAL are 0, 1, 2, and 3, respectively
refer to https://github.com/google/glog/blob/master/src/glog/log_severity.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@critical27 please help check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the minloglevel
0-3 is INFO, WARNING, ERROR, FALAL respectively. And the v
is valid only when minloglevel
is 0 (It used for debug by printing more detailed log). If minloglevel
>=4, no log at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, WARING
is a typo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your reply, please help update this. @whitewum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will support change minloglevel, v in #1273, do we still need this doc?
currenty,I'll use the doc.
we can delete it in the next release.
Jenkins go |
Unit testing passed. |
Unit testing passed. |
* add glog chs * address amber's comment * address critical's comment
change v & minloglevel at runtime by http command curl.
It is quit useful for on-site debuging
@Amber1990Zhang help to change to Eng and add to readme.md TOC.