-
Notifications
You must be signed in to change notification settings - Fork 46
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
Utility function to suppress log messages #78
Comments
Can you share a bit more about the use case? Maybe it's easier and less of a hack to change the appender to write to |
Are you not just asking to set the log level? See ?log_threshold if you set the threshold to WARN, you wouldn't see any level below it: TRACE, DEBUG, INFO, SUCCESS would no longer be shown. Only WARN and above.
You could set the log_threshold in your test file(s). |
Sorry for the substantial delay with my response. @1beb I am well aware of My use case is similar to those of
So |
Sorry for not getting back on this for so long 😞 I am not even sure since when, but now we have Closing, but pls reopen if I got this wrong. |
Oh yeah, I wanted to close this ticket when I saw the new |
Especially in unit tests it would be helpful to be able to suppress log messages. Something like:
Would you be interested in this feature? The code above is a bit hackish since I introduce a non-supported log level which might break if you change the internals.
The text was updated successfully, but these errors were encountered: