Skip to content

Commit

Permalink
Merge pull request #493 from narqo/master
Browse files Browse the repository at this point in the history
Remove log.NewContext mention from log/level docs
  • Loading branch information
ChrisHines authored Mar 8, 2017
2 parents fadad6f + 29f005f commit ab50580
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 ab50580

Please sign in to comment.