Hi I'm trying to rotate my log files and also i have another
requirement of having date suffix for the rotated files.

For this I've used the following configuration:
    log4perl.appender.LOGFILE.layout=PatternLayout
    log4perl.appender.LOGFILE.layout.ConversionPattern = %d %c %m%n
    log4perl.appender.LOGFILE.DatePattern=yyyy-MM-dd

The log files now are getting rotated daily, but the older log files
are getting renamed with testlog.1.gz, testlog.2.gz, etc...
But I want the date on which the log was rotated as the log file
suffix i.e. testlog.2012-04-01

Is there some configuration i should use and i'm missing?

Any help would be great.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to