-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
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
LoggerRule improvements #263
Conversation
* Don't duplicate records with level INFO or above * quiet() allows to record log messages but not print them to console. Useful if there are multiple LoggerRule instances.
@@ -284,4 +297,22 @@ public void describeTo(org.hamcrest.Description description) { | |||
} | |||
} | |||
|
|||
/** | |||
* Delegates to the given Handler but filter out records higher or equal to its initial level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you see #145 and specifically verify this behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see it before, but afaics all the FINE logs were ok when I verified it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, just verifying that you tested more carefully than I did in #138. 😞
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
INFO
or abovequiet()
allows to record log messages but not print them to console. Useful if there are multiple LoggerRule instances.