-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap context-aware handlers + values around loggers by default.
Previously, we didn't allowed you to provide any handler you wanted, which didn't quite meet expectations for using clog. This changes the behavior to always wrap the logger with a context handler. Additionally, when a new logger is created any values present in the context are added to the logger, which should allow the values to be preserved even if the default slog funcs are used.
- Loading branch information
Showing
2 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters