-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zaptest: add ability to filter observer logs by logger name (#1452)
This is useful for assertions on logs in a particular named path, currently this is only possible through calls to Filter but it is more verbose. Added a FilterLoggerName function that plays nicely with the other filters: zapLogs.FilterLoggerName("my.logger").FilterMessage("hello") --------- Signed-off-by: Mauri de Souza Meneguzzo <mauri870@gmail.com> Co-authored-by: Sung Yoon Whang <sungyoonwhang@gmail.com>
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 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