-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Console logging: separation of stdout and stderr #701
Comments
@sergiud I would like to have a try. For the design, I don't think we should send non-error logs to stdout when FLAGS_logtostderr was enabled, which would have the breaking change. Do you think we should add another flag to like |
apache/kvrocks#478 Kvrocks also wants to log to the stdout which is using glog. |
Having |
cool, thanks. |
As explained in And how does |
@sergiud I will be happy to do this if you think it makes sense.
You're right that it will send all logs to stderr if set to 0 and |
However, I'm not sure how intended behavior should be. During my testing today, both |
@jstiefel What's your expected behavior and what you got? |
Line 120 in 05fbc65
(I didn't set any other flags while trying.) |
Ummm... I tried on my side but it won't send logs to the logfile if one of FLAGS_logtostdout and FLAGS_logtostderr is enabled. |
My mistake, I just realized that these flags keep persisting if I don't overwrite them. So no logfiles created now. I think it would be useful to have the |
@sergiud Does this sound good? if yes, i will go ahead to handle this. |
Found an issue related to this flag: #943 |
For console logging, it seems like there is no way to configure Glog to send non-error logs to
stdout
and error logs tostderr
.By default, Glog sends only error logs to stderr, and there is a
FLAGS_logtostderr
which sends ALL logs tostderr
which is not ideal. It will be good to have a flag to log to both stdout and stderr appropriately.The text was updated successfully, but these errors were encountered: