java - Set JCS log level to ERROR - log4j -


i have implemented jcs in j2ee application uses log4j logging.

my requirement

set application rootlogger in debug level , jcs logs in error mode.

what tried

tried following in log4j properties

log4j.category.org.apache.common.jcs=error log4j.logger.org.apache.common.jcs=error 

but nothing affecting logging.

whenever cache access happens, logs bunch of returning first node messages.

note : using latest jcs commons-jcs-core-2.0-beta-1.jar

this complete log4j.properties

log4j.rootlogger=debug, a1  # use console appender development  log4j.appender.a1=org.apache.log4j.consoleappender  log4j.appender.a1.layout=org.apache.log4j.patternlayout log4j.appender.a1.layout.conversionpattern= %d [%t] %-5p - %m%n  log4j.logger.net.sf.jasperreports=error log4j.category.org.apache.common.jcs=error 

i missed "s" in commons. correcting solved problem.

solution

both below statements can used configure jcs log level in log4j.

log4j.category.org.apache.commons.jcs=error log4j.logger.org.apache.commons.jcs=error 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -