Re: [log4perl-devel] rotation on new run of script

2009-03-11 Thread Mike Schilli
On Wed, 11 Mar 2009, DAY Roger wrote: > That would work, cheers. I was thinking it'll be fun to write a custom > appender. No doubt, go for it :). -- Mike Mike Schilli m...@perlmeister.com > > I'll think on it. > > Roger > > > -Original Message- > From: Mike Schilli [mailto:m...@perlme

Re: [log4perl-devel] rotation on new run of script

2009-03-11 Thread DAY Roger
That would work, cheers. I was thinking it'll be fun to write a custom appender. I'll think on it. Roger -Original Message- From: Mike Schilli [mailto:m...@perlmeister.com] Sent: 11 March 2009 15:41 To: DAY Roger Cc: Mike Schilli; log4perl MailingList Subject: RE: [log4perl-devel] rot

Re: [log4perl-devel] rotation on new run of script

2009-03-11 Thread DAY Roger
This from the web-page: "I initially aasumed a long runinng process but it seems people are using this module as part of short running CGI programs. So, now we look at the last modified time stamp of the log file and compare it to a previous occurance of a DatePattern, on startup only. If the file

Re: [log4perl-devel] rotation on new run of script

2009-03-11 Thread Mike Schilli
On Wed, 11 Mar 2009, DAY Roger wrote: > Which I take to mean it does do invocation-like rollovers. If this > doesn't work, I'll resort to a custom file appender. Actually, you could use something like this: log4perl.appender.Logfile = Log::Log4perl::Appender::File log4perl.appender.Log

Re: [log4perl-devel] rotation on new run of script

2009-03-11 Thread Mike Schilli
On Tue, 10 Mar 2009, DAY Roger wrote: > Every time I run a script, I'd like my log-file to roll over. I invoke > Log::Dispatch::FileRotate thusly >... > DatePattern => 'HH-dd-',); Hmm, this is neither a valid date pattern (-MM-dd-HH would be correct), according to the Log::Dispatch::