Skip to content

Commit

Permalink
get rid of log.NewContext mention in log/level doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Varankin committed Mar 8, 2017
1 parent fadad6f commit 29f005f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/level/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// var logger log.Logger
// logger = log.NewLogfmtLogger(os.Stderr)
// logger = level.NewFilter(logger, level.AllowInfoAndAbove()) // <--
// logger = log.NewContext(logger).With("ts", log.DefaultTimestampUTC)
// logger = log.With(logger, "ts", log.DefaultTimestampUTC)
//
// Then, at the callsites, use one of the level.Debug, Info, Warn, or Error
// helper methods to emit leveled log events.
Expand Down

0 comments on commit 29f005f

Please sign in to comment.