Thanks, opened https://issues.apache.org/jira/browse/LOG4J2-435.

Arkin


On Tue, Oct 15, 2013 at 8:34 AM, Ralph Goers <[email protected]>wrote:

> Not currently.  You should create a Jira to request it.  I suppose the max
> attribute could be used to limit the number of days if no %i is present,
> but if it is then it would only apply to that so it really wouldn't limit
> the total number of files.  So I am thinking a second attribute might be a
> better choice.
>
> Ralph
>
>
> On Oct 15, 2013, at 6:58 AM, Arkin Yetis <[email protected]> wrote:
>
> > Got it. It is rolling. I thought it would limit across days, too. Is
> there
> > a way to do cleanup across days currently?
> >
> > Thank you.
> >
> > - Arkin
> >
> > On Tuesday, October 15, 2013, Ralph Goers wrote:
> >
> >> What behavior are you seeing?  Is it never rolling or something else?
> >>
> >> The max attribute only applies if you have a %i in the file pattern. It
> >> would limit to 2 files per day if you had one in the patten, but not 2
> >> files across days.
> >>
> >> Ralph
> >>
> >>> On Oct 14, 2013, at 6:07 PM, Arkin Yetis <[email protected]
> <javascript:;>>
> >> wrote:
> >>>
> >>> Hi,
> >>> I can't seem to get the DefaultRolloverStrategy to work with the
> >> following
> >>> configuration. Is there anything I am doing wrong?
> >>> Thanks,
> >>> Arkin
> >>>
> >>>   <?xml version="1.0" encoding="UTF-8"?>
> >>>   <configuration status="info" name="ABC" >
> >>>     <appenders>
> >>>       <RollingFile name="localFile" fileName="test.log"
> >>> filePattern="test-%d{MM-dd-yyyy}.log.gz">
> >>>         <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36}:%L
> >>> %M - %msg%n" />
> >>>         <TimeBasedTriggeringPolicy />
> >>>         <DefaultRolloverStrategy max="2" />
> >>>       </RollingFile>
> >>>     </appenders>
> >>>
> >>>     <loggers>
> >>>       <root level="info">
> >>>         <appender-ref ref="localFile" />
> >>>       </root>
> >>>     </loggers>
> >>>   </configuration>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> <javascript:;>
> >> For additional commands, e-mail: [email protected]
> <javascript:;>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to