Created
January 21, 2012 11:36
-
-
Save olegp/1652459 to your computer and use it in GitHub Desktop.
Disable logging in Ringo
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
var logLevels = { | |
"org.hibernate": "WARN", | |
"com.mchange": "ERROR", | |
"net.sf.ehcache": "ERROR" | |
}; | |
var {Logger, Level} = org.apache.log4j; | |
for(var p in logLevels) { | |
Logger.getLogger(p).setLevel(Level[logLevels[p]]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment