How do you deliver an application w/ log4j turned off so that all the internal 
working's that are being logged can't be turned on by clients?

Below is how I have the majority of my classes configured. 

#log4j.category.com.myClass.MyClass=DEBUG, vers
log4j.rootLogger.com.myClass.MyClass=DEBUG, vers
log4j.appender.vers=org.apache.log4j.RollingFileAppender
log4j.appender.vers.File=logs/vers.log
log4j.appender.vers.MaxFileSize=10KB
log4j.appender.vers.MaxBackupIndex=1
log4j.appender.vers.layout=org.apache.log4j.PatternLayout
log4j.appender.vers.layout.ConversionPattern=[%-5p]: %m%n

Using the above, how do I turn off output to the console with the exception of error 
level output which I do want to appear on the console?

Reply via email to