Configure logging for 3rd party libs in a plugin

(Scott Frederick) #1

I’m writing a Gradle plugin that uses a third-party Java library. The library uses slf4j for logging, and logs some WARN messages that end up in the console output along with Gradle output and the plugin’s output.

Is there a way to configure the Gradle logging system so that a specific logger’s level is changed (i.e. to something higher than WARN)? Or is there another way to keep this third-party library’s logging output from appearing in the console output?

How to mute a 3rd party librarie's overly verbose WARN logger?
(Peter Niederwieser) #2

The only way to prevent logging of WARN messages that I’m aware of is to run with ‘–quiet’.