From 7d228b51ce25de4afcfa60e312d4a199c327cbb2 Mon Sep 17 00:00:00 2001 From: Craig Jellick Date: Thu, 1 Dec 2016 17:34:47 -0700 Subject: [PATCH] Update readme example for switching output Clarifies that stderr is the default, not stdout. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 05d678a..77cc72a 100644 --- a/README.md +++ b/README.md @@ -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)