Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to rotate Log4Perl logs?

by davorg (Chancellor)
on Feb 13, 2007 at 12:29 UTC ( #599679=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://599679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2023-10-02 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?