logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yogi Nerella <ynerella...@gmail.com>
Subject Re: how to set to RollingFileAppender interval to 5 minutes.
Date Fri, 15 Feb 2013 22:18:45 GMT
Ralph,

when I configure DatePattern, I recieve the following message, but it
honors the parameter and generates the log files as configured.

Is this a bug?

2013-02-15 11:59:11,233 ERROR RollingFile contains an invalid element or
attribute "DatePattern"

Yogi



On Thu, Feb 14, 2013 at 10:39 AM, Ralph Goers <ralph.goers@dslextreme.com>wrote:

> You should be able to set the pattern to include minutes and then specify
> the interval on the TriggeringPolicy.  If you set it to 5 then it should
> roll every 5 minutes. If you specify modulate as true then it will occur on
> the 5, 10, 15, etc minute of the hour.
>
> Ralph
>
>
> On Feb 14, 2013, at 9:55 AM, Yogi Nerella wrote:
>
> > HI,
> >
> > How to set interval in minutes, if we want to Roll every 5 minutes?
> >
> > Currently it is only accepting in hours?
> >
> > Yogi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

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