You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Haider <ha...@gmail.com> on 2008/11/07 07:56:32 UTC

log4j help

Hi

I am using oc4j server on UNIX and logging is working file , currently I
used DWR 2.0 in my application, after that logging is not working properly.
I use org.apache.log4j.DailyRollingFileAppender for daily log, but daily its
reset/update previous log and make one log file (debuglog.txt) and the old
log log file (debuglog.txt.2008.10.24) have some line of log.


My log4j config property file is: 
log4j.rootCategory=DEBUG, dest4, dest5
log4j.additivity.rootCategory=false
log4j.logger.org.apache.commons=ERROR
log4j.logger.org.apache.struts=ERROR
log4j.logger.org.displaytag=ERROR

log4j.appender.dest1=org.apache.log4j.ConsoleAppender
log4j.additivity.dest1=false
log4j.appender.dest1.ImmediateFlush=true
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=-%m%n
log4j.appender.dest4=org.apache.log4j.DailyRollingFileAppender
log4j.additivity.dest4=false
log4j.appender.dest4.File=debuglog.txt
log4j.appender.dest4.DatePattern='.'yyyy-MM-dd
log4j.appender.dest1.ImmediateFlush=true
log4j.appender.dest4.layout=org.apache.log4j.PatternLayout
log4j.appender.dest4.layout.ConversionPattern=[%-5p]-(%c:%L)-%m%n


-- 
View this message in context: http://www.nabble.com/log4j-help-tp20375595p20375595.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


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