Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stopping Logging For All Levels In Logback

When you need to tell Logback to stop logging for a logger, the following snippet can be added to logback.xml configuration file:

<logger name="loggerName">
    <level value="off" />
</logger>

"loggerName" represents your logger name that will be stopped. If you use fully-qualified package name, all of logs coming from that package will be stopped.

Useful Links

Other Logback filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.