-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a `LoggerWithContext` interface that extends the `Logger` interface by a method `PrintfWithContext` that, when implemented, is called instead of the `Printf` method of the `Logger` interface. The purpose of `PrintfWithContext` is to receive the current context under which the logging happens. Notice that this doesn't always have to be request-scoped, i.e. an actual API call from a user. It may also be from an internal state or process, e.g. Bulk processor or node health. Close #1541
- Loading branch information
Showing
3 changed files
with
52 additions
and
29 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
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