Created
December 12, 2019 13:01
-
-
Save viveksb007/9165968514f5a54279394ba264814d1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configurator.setRootLevel(Level.getLevel("IMPORTANT")); | |
logger.log(Level.getLevel("IMPORTANT"), "Log Message"); | |
// After all important logging, you can set logging root level back to your default | |
Configurator.setRootLevel(Level.getLevel("ERROR")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment