Skip to content

Instantly share code, notes, and snippets.

@baybatu
Created November 8, 2015 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baybatu/7ded0d7c7aaf5489738e to your computer and use it in GitHub Desktop.
Save baybatu/7ded0d7c7aaf5489738e to your computer and use it in GitHub Desktop.
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