logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bender Heri" <HBen...@Ergonomics.ch>
Subject Logfiles sometimes overwritten at server restart
Date Wed, 28 Jun 2006 13:00:15 GMT
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"/>
        <filter class="ch.ergonomics.pms.common.supervision.TraceDenyFilter"/>
        <filter class="ch.ergonomics.pms.common.supervision.XMLDenyFilter"/>

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.


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

View raw message