fogwolf
fogwolf

Reputation: 941

Turn off logging for a package in Dropwizard app

I need to disable logging for a specific package of a 3rd party library in my Dropwizard app. I've tried this in the Dropwizard configuration file:

logging:
    loggers:
       org.springframework.amqp.rabbit.listener: WARN

which is documented should work but I get this error:

java.lang.IllegalArgumentException: Unsupported format of logger 'org.springframework.amqp.rabbit.listener'

Any help or thoughts greatly appreciated. Thanks.

Upvotes: 7

Views: 2180

Answers (1)

fogwolf
fogwolf

Reputation: 941

The answer for me was to put "OFF" in quotes. Not sure why - I didn't find any documentation of this, I just tried it and it worked!

Upvotes: 10

Related Questions