-
Notifications
You must be signed in to change notification settings - Fork 219
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
Difficult to configure logging to file #60
Comments
klog can now support logging both to a file and to streams, so we get the output both in docker & logfiles. A few gotchas: * The output previously was all on stdout, now it on stderr. That is more correct * If something writes to stdout or stderr outside of klog, it will no longer end up in the logfile. * There's some oddities still to be ironed out about the flag syntax kubernetes/klog#60
klog can now support logging both to a file and to streams, so we get the output both in docker & logfiles. A few gotchas: * The output previously was all on stdout, now it on stderr. That is more correct * If something writes to stdout or stderr outside of klog, it will no longer end up in the logfile. * There's some oddities still to be ironed out about the flag syntax kubernetes/klog#60
klog can now support logging both to a file and to streams, so we get the output both in docker & logfiles. A few gotchas: * The output previously was all on stdout, now it on stderr. That is more correct * If something writes to stdout or stderr outside of klog, it will no longer end up in the logfile. * There's some oddities still to be ironed out about the flag syntax kubernetes/klog#60
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Similar to #54, but in order to configure logging to a file and to stderr, we must first turn off logtostderr.
--logtostderr=false --alsologtostderr --log-file=my.log
I'm thinking that the logic for logging needs to be changed to reflect the changed default for
logtostderr
; I think a non-empty log-file should result in us not logging to stderr, unlessalsologtostderr
is true./kind bug
The text was updated successfully, but these errors were encountered: