Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 244
fogwolf Avatar asked Dec 06 '16 23:12

fogwolf


1 Answers

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!

like image 62
fogwolf Avatar answered Oct 17 '22 22:10

fogwolf