Skip to content

Commit

Permalink
Update godoc for the default value of logtostderr
Browse files Browse the repository at this point in the history
godoc says the default value of `logtostderr` is false, which is wrong.
  • Loading branch information
ymmt2005 authored May 28, 2019
1 parent 4b47a90 commit 314f6c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klog.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
// Log output is buffered and written periodically using Flush. Programs
// should call Flush before exiting to guarantee all log output is written.
//
// By default, all log statements write to files in a temporary directory.
// By default, all log statements write to standard error.
// This package provides several flags that modify this behavior.
// As a result, flag.Parse must be called before any logging is done.
//
// -logtostderr=false
// -logtostderr=true
// Logs are written to standard error instead of to files.
// -alsologtostderr=false
// Logs are written to standard error as well as to files.
Expand Down

0 comments on commit 314f6c4

Please sign in to comment.