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 "MEHMET EMIN CELIK (EBI Bsk. - Analist Programci)" <MC...@THY.COM> on 2003/06/13 12:11:36 UTC
DailyRollingFileAppender is writing to previous date file
on start day sistem creates the log file named TASK
writes data continuously on every milisecond
on dayend log4j is closing TASK. renaming the TASK file to TASK.SOMEDATE and
creates new TASK file
But the new first 3-4 seconds data is written to TASK.SOMEDATE (file is
overrided so we lose all data)
then to the TASK file.
i do not face any problem on NT
problem occurs is on HP-UNIX.
Any idea.
So here is the log4j.prop
log4j.appender.taskFileOut=org.apache.log4j.DailyRollingFileAppender
log4j.appender.taskFileOut.ImmediateFlush=true
log4j.appender.taskFileOut.Threshold=DEBUG
log4j.appender.taskFileOut.File=${thy.troya.log.dir}/TASK
log4j.appender.taskFileOut.DatePattern='.'yyMMdd'.txt'
log4j.appender.taskFileOut.layout=org.apache.log4j.PatternLayout
log4j.appender.taskFileOut.layout.ConversionPattern= %d{dd HH:mm:ss,SSS}
%m%n
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org