-
Notifications
You must be signed in to change notification settings - Fork 5
CLI: Prevent mixture of logging and CLI output #194
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
Comments
It seems we are hitting a limitation of slf4j here: For a CLI program no end user want to see this 3 lines from slf4j mixed in the CLI output if no logger binding is found on the classpath. Therefore slf4j should offer a way to suppress this warning e.g. via a system property. |
If on the other hand we would ship CLI with logback as dependency (or even slf4j-nop what is IMHO both wrong) then we would also need to ship a logback config that prevents any logoutput by default. This would again interfere with projects that just have our lib as dependency for other reasons. |
Unfortunately no reaction. |
slf4j does not seem to care about its PRs. I also posted on the mailing list and others have the same problem and their PRs are not commented since over one year. Hence, I am removing the milestone to prevent blocking other issues being solved for the release. |
By default CLI (from
AbstractMain
) should somehow configure the logging such that is silent and does not interfere with the CLI program output.As advanced feature an option or system property should allow to configure the logging to use a specific config file so log messages are printed on console or written to log file.
However CLI users do not want to see the ugly 3 lines of SLF4J that no logger binding exists nor want to see the error messasges such as that javax.validation may not be on their classpath, etc. by default.
The text was updated successfully, but these errors were encountered: