Configure logging for 3rd party libs in a plugin

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?

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