Hi,
I think, some of the entries in the log4j.xml are not seen in the earlier
post. So, posting it agian.
<appender name="FILEAPPENDER"
class="org.apache.log4j.rolling.RollingFileAppender">
< param name="file" value="${catalina.base}/bin/logs/test.log" />
< param name="append" value="true" />
< param name="encoding" value="UTF-8" />
<rollingPolicy
class="org.apache.log4j.rolling.FixedWindowRollingPolicy">
< param name="FileNamePattern"
value="${catalina.base}/bin/logs/test.%i.log.zip" />
< param name="MaxIndex" value="5"/>
< param name="MinIndex" value="1"/>
</rollingPolicy>
<triggeringPolicy
class="org.apache.log4j.rolling.SizeBasedTriggeringPolicy">
< param name="MaxFileSize" value="5120"/>
</triggeringPolicy>
<layout class="org.apache.log4j.PatternLayout">
< param name="ConversionPattern" value="%d %p [%c] - %m%n" />
</layout>
</appender>
Thanks & Regards,
Yong-Loh
Yong-Loh wrote:
>
> Hi All,
>
> We are using log4j 1.2.15 and log4j-extras-1.0. Our requirement is to roll
> the log file based on size and the old files need to be compressed. To do
> this, We are using RollingFileAppender in extras companion. The problem
> that we are facing is..some files are zipped and some are not zipped at
> all.
>
> Did anybody face the similar issue? Is it a known issue with log4j-extras
> or something todo with the log4j configuration?
>
> Below is our log4j.xml. Any pointers in resolving this issue would be of
> great help.
>
> <appender name="FILEAPPENDER"
> class="org.apache.log4j.rolling.RollingFileAppender">
>
>
>
> <rollingPolicy
> class="org.apache.log4j.rolling.FixedWindowRollingPolicy">
>
>
>
> </rollingPolicy>
>
> <triggeringPolicy
> class="org.apache.log4j.rolling.SizeBasedTriggeringPolicy">
>
> </triggeringPolicy>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> </appender>
>
> Thanks & Regards,
> Yong-Loh
>
--
View this message in context:
http://old.nabble.com/log4j-extras-%3A-issue-with-zipping-tp27753192p27753615.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]