Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bibarsov/9256a5d47c88b12c14eefbdb5b7a3527 to your computer and use it in GitHub Desktop.
Save bibarsov/9256a5d47c88b12c14eefbdb5b7a3527 to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
ch.qos.logback.classic.Logger rootLogger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME);
rootLogger.setLevel(Level.toLevel("trace"));
Logger logger = LoggerFactory.getLogger("Test");
if(!LOGGER.isDebugEnabled()){
LOGGER.info("BLA BLA INFO");
}
LOGGER.debug("BLA BLA DEBUG");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment