Hi all
I use log4j 1.2.8 in a server environement with DailyRollingFileAppenders.
Although the property Append is set to true, the logfiles are sometimes
overwritten on restart of the server application. I cannot reproduce this
problem, it just happens occasionally.
Here the excerpt of my configuration:
<appender name="ROLLING_FILE_APPENDER"
class="org.apache.log4j.DailyRollingFileAppender">
<param name="file" value="../../traces/log.log"/>
<param name="DatePattern" value="yyyy-MM-dd"/>
<param name="Append" value="True"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{HH:mm:ss.SSS} (%6r) %-5p
%-10X{category} [%-7t] %F:%L %x - %m%n"/>
</layout>
<filter class="ch.ergonomics.pms.common.supervision.TraceDenyFilter"/>
<filter class="ch.ergonomics.pms.common.supervision.XMLDenyFilter"/>
</appender>
Somebody else encountered this problem?
More Infos:
- the java app is wrapped by the org.tanukisoftware.wrapper in order to run as
NT Service.
- The filename is set programmatically after initialization of log4j
Any hints are welcome.
Heri
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]