You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Johannes Wolfgang Woger <jw...@chello.at> on 2004/04/29 20:02:01 UTC

log4j prints out twice

Hi,
logging with log4j prints out one message twice into my log file.

here is log4j.properties

#levels: error, fatal
log4j.rootLogger=ERROR,rolling
log4j.logger.org.zack =DEBUG, rolling

log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=/usr/local/tomcat5019/logs/ExtManager_IB.log
log4j.appender.rolling.MaxFileSize=300KB
log4j.appender.rolling.MaxBackupIndex=3
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{MM/dd/yy hh:mm:ss a } 
%-5p %c %M - %m%n

code is not executed twice, since a 
servlet.getServletContext().log("text"); only show up once

any suggestions?

Wolfgang




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org