logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yair Ogen <yairo...@gmail.com>
Subject Re: How to implement DailyRollingFile appender with rollingPolicy
Date Wed, 13 May 2009 08:26:59 GMT
This is already available using: "timeAndSizeRollingAppender".
You can get it from:

http://www.simonsite.org.uk/



On Wed, May 13, 2009 at 10:17 AM, Sindhu <crsindhu.27@gmail.com> wrote:

>
> I have implemented DailyRollingFileAppender,but their is no control on the
> size of the log file.I would like to control the file size as wel.
>
> Recently i heard about rollingPolicy.when i used the same in my log4j.xml i
> got the below warning "ERROR Element type "rollingPolicy" must be
> declared".
>
> I know the meaning of this error,i.e, rollingPolicy is not found in the
> log4j.dtd under the appender tag elemnt.But not knowing how to proceed now.
>
> The version of log4j.dtd is 1.2
>
> this is the log4j.xml
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks in advance,
> Sindhu
> --
> View this message in context:
> http://www.nabble.com/How-to-implement-DailyRollingFile-appender-with-rollingPolicy-tp23516632p23516632.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message