Codebase list golang-github-go-kit-kit / ffbd516
Fix example code in docs. Fabian Reinartz authored 7 years ago GitHub committed 7 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
7070 // DefaultCaller. A common logger initialization sequence that ensures all log
7171 // entries contain a timestamp and source location looks like this:
7272 //
73 // logger := log.NewLogfmtLogger(log.SyncWriter(os.Stdout))
73 // logger := log.NewLogfmtLogger(log.NewSyncWriter(os.Stdout))
7474 // logger = log.NewContext(logger).With("ts", log.DefaultTimestampUTC, "caller", log.DefaultCaller)
7575 //
7676 // Concurrent Safety