Hi,
regarding the mailing:
http://mail-archives.apache.org/mod_mbox/logging-log4j-user/200511.mbox/[EMAIL 
PROTECTED]

I tried to implement the suggestion of Curt Arnold, but failed on the way to configure the time based trigger. Below you see my suggestion of the configuration, but I have no idea how to configure the triggering Policy. Did somebody implemented this already and might give me a hint.

Regards,
Rainer

   <appender name="ROLL" class="org.apache.log4j.RollingFileAppender">
<rollingPolicy class="org.apache.log4j.rolling.FixedWindowRollingPolicy">
       <param name="fileNamePattern" value="./log/filterBased-test1.%i"/>
       <param name="minIndex" value="0"/>
    </rollingPolicy>
<triggeringPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
      ????
    </triggeringPolicy>
    <layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%5p [%t] %5rms - (%d{%H:%M:%S}) (%5L) %c - %m%n"/>
    </layout>
    <param name="file" value="./log/filterBased-test1"/>
    <param name="append" value="true"/>
  </appender>


Rainer Schuetze schrieb:
Hi,

Is there a way to clean up the folder with the RollingFileAppender.
For instance I create every date a separate log file with the TimeBasedRollingPolicy. I like to configure the RollingFileAppender on this way, that only the last 15 days are kept in the folder, is this possible?
MFG
Rainer



--
Rainer Schuetze

i3mainz - Fachhochschule Mainz
Holzstrasse 36
55116 Mainz
Germany

Tel: +49 (0)6131 2859 682
Fax: +49 (0)6131 2859 699
[EMAIL PROTECTED]
http://www.i3mainz.fh-mainz.de

Reply via email to