in reply to How to rotate Log4Perl logs?

The term you are looking for is "log rotation". Most people would do this with an external utility like logrotate.

The Log::Log4Perl distribution contains a FAQ which includes the question How can I rotate a logfile with newsyslog?. The fact that newsyslog is singled out for attention would seem to imply that other log rotators "just work".

Replies are listed 'Best First'.
Re^2: How to rotate Log4Perl logs?
by palette (Scribe) on Feb 13, 2007 at 12:52 UTC
    log4perl.logger.ABC = DEBUG, ABC log4perl.appender.ABC = Log::Dispatch::FileRo +tate log4perl.appender.ABC.filename = /tmp/abc.log log4perl.appender.ABC.max = 15 log4perl.appender.ABC.DatePattern = yyyy-MM-dd log4perl.appender.ABC.mode = append log4perl.appender.ABC.TZ = BST log4perl.appender.ABC.layout = Log::Log4perl::Layout +::PatternLayout log4perl.appender.ABC.layout.ConversionPattern = [%d] %c - %m%n
    A reply falls below the community's threshold of quality. You may see it by logging in.