How do I eliminate logging from a specific jar

I am using slf4j over logback in java. How do I eliminate logging from a specific jar? It prints a lot of info and I want to raise only its level to debug.

If the code in that jar is all using the same package name (which is commonly how it’s done), then you can do it like this: In logback.xml, add: <logger name=“com.foo.bar” level=“ERROR” /> Then only error messages will be printed for classes in sub packages of com.foo.bar David On 23 Nov 2014, at 10:44, rails <stammailbox@gmail.com> wrote:
I am using slf4j over logback in java. How do I eliminate logging from a specific jar? It prints a lot of info and I want to raise only its level to debug. _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

You can shut it up entirely like... <logger name=“com.foo.bar” level=“OFF” /> No? Bob On Nov 25, 2014 7:20 AM, "David Roussel" <nabble@diroussel.xsmail.com> wrote:
If the code in that jar is all using the same package name (which is commonly how it’s done), then you can do it like this:
In logback.xml, add:
<logger name=“com.foo.bar” level=“ERROR” />
Then only error messages will be printed for classes in sub packages of com.foo.bar
David
On 23 Nov 2014, at 10:44, rails <stammailbox@gmail.com> wrote:
I am using slf4j over logback in java. How do I eliminate logging from a specific jar? It prints a lot of info and I want to raise only its level to debug. _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
participants (3)
-
David Roussel
-
rails
-
Robert Kuhar