Created
January 17, 2012 11:11
-
-
Save manuelbrunner/1626269 to your computer and use it in GitHub Desktop.
prevent memcached library to write to system out
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
// force memcached library to use log4j | |
Properties systemProperties = System.getProperties(); | |
systemProperties.put("net.spy.log.LoggerImpl", "net.spy.memcached.compat.log.Log4JLogger"); | |
System.setProperties(systemProperties); | |
// set log level in log4j.properties | |
// log4j.logger.net.spy.memcached = WARN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment