1
0
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:
Konstantin Pechenenko
2024-03-03 06:52:46 +07:00
committed by GitHub
parent 582007f21d
commit e5edd4b8ec
+1 -1
View File
@@ -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"}
//