We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In tests, it's useful to validate that a specific log exists with a specific field (similar to tchannel's log filtering).
I'm thinking of adding methods on ObservedLogs to filter:
ObservedLogs
Imagining something like:
logger, sink := observer.New(...) [...] logs := sink.FilterMessage("Warning.").FilterField("serviceName", "foo") assert.Equal(t, 1, logs.Len(), "Missing expected log in %v", sink)
cc @billf
The text was updated successfully, but these errors were encountered:
Sounds good to me.
Sorry, something went wrong.
No branches or pull requests
In tests, it's useful to validate that a specific log exists with a specific field (similar to tchannel's log filtering).
I'm thinking of adding methods on
ObservedLogs
to filter:Imagining something like:
cc @billf
The text was updated successfully, but these errors were encountered: