Update readme example for switching output

Clarifies that stderr is the default, not stdout.
This commit is contained in:
Craig Jellick 2016-12-01 17:34:47 -07:00
parent 3c3917e625
commit 7d228b51ce
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ func init() {
// Log as JSON instead of the default ASCII formatter.
log.SetFormatter(&log.JSONFormatter{})
// Output to stderr instead of stdout, could also be a file.
log.SetOutput(os.Stderr)
// Output to stdout instead of the default stderr, could also be a file.
log.SetOutput(os.Stdout)
// Only log the warning severity or above.
log.SetLevel(log.WarnLevel)