Skip to content

Commit ffabf4a

Browse files
authored
docs: update README.md
1 parent 6e534d0 commit ffabf4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ log.Error("Whoops!", "err", "kitchen on fire")
235235
Create sub-loggers with their specific fields.
236236

237237
```go
238+
logger := log.NewWithOptions(os.Stderr, log.Options{
239+
Prefix: "Baking 🍪 "
240+
})
238241
batch2 := logger.With("batch", 2, "chocolateChips", true)
239242
batch2.Debug("Preparing batch 2...")
240243
batch2.Debug("Adding chocolate chips")

0 commit comments

Comments
 (0)