Created
April 4, 2016 17:04
-
-
Save zhangkun83/c8fd3b0bb8927510c55dc686344d7635 to your computer and use it in GitHub Desktop.
Change Java logging level at runtime
This file contains hidden or 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
Logger.getLogger("io.grpc").setLevel(Level.FINE); | |
Handler[] handlers = Logger.getLogger( "" ).getHandlers(); | |
for ( int index = 0; index < handlers.length; index++ ) { | |
handlers[index].setLevel( Level.FINE ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment