Skip to content

Instantly share code, notes, and snippets.

@manuelbrunner
Created January 17, 2012 11:11
Show Gist options
  • Save manuelbrunner/1626269 to your computer and use it in GitHub Desktop.
Save manuelbrunner/1626269 to your computer and use it in GitHub Desktop.
prevent memcached library to write to system out
// 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