mirror of
https://github.com/rs/zerolog
synced 2026-06-08 17:13:30 +00:00
Refactor: make code in comment valid and runable (#654)
This commit is contained in:
committed by
GitHub
parent
582007f21d
commit
e5edd4b8ec
@@ -24,7 +24,7 @@
|
||||
//
|
||||
// Sub-loggers let you chain loggers with additional context:
|
||||
//
|
||||
// sublogger := log.With().Str("component": "foo").Logger()
|
||||
// sublogger := log.With().Str("component", "foo").Logger()
|
||||
// sublogger.Info().Msg("hello world")
|
||||
// // Output: {"time":1494567715,"level":"info","message":"hello world","component":"foo"}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user