https://issues.apache.org/bugzilla/show_bug.cgi?id=44700

Johannes <jtuchsche...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Johannes <jtuchsche...@gmail.com> 2010-11-24 17:40:29 EST 
---
We are experiencing the same problem with log4j 1.2.16 running on a jetty web
app on a Redhat machine.

The rollover logic appears to work just fine, but the java process holds a
reference to the rotated files, so that we cannot delete them.

Please let me know if you need more info.

Here is an excerpt form our log4j.xml
[...]
    <appender name="slm-debug-async" class="org.apache.log4j.AsyncAppender">
        <appender-ref ref="slm-debug"/>
    </appender>
    <appender name="slm-debug"
class="org.apache.log4j.DailyRollingFileAppender">
        <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/>

        <!-- Rollover at midnight each day -->
        <param name="DatePattern" value="'.'yyyy-MM-dd"/>

        <param name="File" value="@log.dir@/server.log"/>
        <param name="Append" value="true"/>

    </appender>
[...]
    <root>
        <appender-ref ref="slm-debug-async"/>
    </root>
[...]

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to