Can't both log4j and log4j2 already do this?
In your config, specify fileName="exception.current" and
filePattern="exception.%d{MMddyyyy}". See the example config for
RollingAppender
http://logging.apache.org/log4j/2.x/manual/appenders.html#RollingFileAppender
Regards,
Remko
Sent from my iPhone
> On 2014/04/17, at 19:26, Nishantha Pradeep <[email protected]> wrote:
>
> Hi All
>
> Consider following scenario
>
> 1) Application is writing to exception.current log file which has time based
> rolling policy.
> 2) Once the rolling interval passed, exception.current should be renamed to
> exception.04042014 and new exception.current file should be started.
>
> Is there any configuration to remove 'current' from rolled out file ?
>
> If is it is not in legacy log4j, will it be available in log4j2 ?
>
> -Thanks
> Nishantha
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]