*Problem description*: my logger.info statements from my classes are logged in to the *app.log* file which is my application log file and also on my *Websphere console* (System out.log ) staements are displaying , actually my requirement is to see logger statements in my application log file i.e. (app.log file) but not in console. how to stop my logging statements to appear in console?
Is thereanything i am missing here !!!
I am loading log4j. properties using the following line in one of my classes ...
PropertyConfigurator.configure(/usr/log/log4j.properties);
Log4j.properties
log4j.rootLogger=ERROR
# Specify where to log by packages.
log4j.logger.com.abc.example=INFO,dest1
log4j.appender.dest1=org.apache.log4j.RollingFileAppender
log4j.appender.dest1.File=app.log
log4j.appender.dest1.MaxFileSize=10000KB
log4j.appender.dest1.MaxBackupIndex=30
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.Target=System.out
#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.sdtout.Threshold=ERROR
Thanks in Advance,
J.P.Sastry (
SCJP,SCWCD,SCBCD)
[ May 08, 2008: Message edited by: jandhyala sastry ]