logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Haider <haide...@gmail.com>
Subject log4j help
Date Fri, 07 Nov 2008 06:56:32 GMT

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


Mime
View raw message