-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Prevent logging? #3901
Comments
Hi @gchaperon, I see no reason not to offer that. I'd say it's rather unexpected to find that you can set logging levels, but none of them allow you to disable logging entirely. Care to do a PR? :) |
In theory, the logging can be entirely disabled via slf4j (by configuring logback in logback.xml)
|
Ah, yes, that is true. But as we have an API for setting the logging level, wouldn't it also make sense to add an |
yes it would! |
Let's put it on the TODO list then :) @gchaperon Would you like to try your hand at a PR for this feature? |
hi, ya sure, i can try |
Is it currently possible to prevent logging completely?
I am looking at the source and it seems to me that it is not possible, since only valid names defined in
spoon.support.Level
are allowd herespoon/src/main/java/spoon/support/StandardEnvironment.java
Line 190 in fecec81
Please let me know if I have overlooked something and it is actually possible.
If it is not possible, how would you feel about adding
OFF(0)
toLevel
. Would that allow to turn logging completely off?Best,
Gabriel.
The text was updated successfully, but these errors were encountered: