Package list golang-github-go-kit-kit / 29f005f
get rid of log.NewContext mention in log/level doc Vladimir Varankin 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
44 // var logger log.Logger
55 // logger = log.NewLogfmtLogger(os.Stderr)
66 // logger = level.NewFilter(logger, level.AllowInfoAndAbove()) // <--
7 // logger = log.NewContext(logger).With("ts", log.DefaultTimestampUTC)
7 // logger = log.With(logger, "ts", log.DefaultTimestampUTC)
88 //
99 // Then, at the callsites, use one of the level.Debug, Info, Warn, or Error
1010 // helper methods to emit leveled log events.