Re: [log4perl-devel] Limiting file size in log4perl

2009-08-26 Thread Mike Schilli
On Wed, 26 Aug 2009, Ronald Fischer wrote: > Thanks a lot! The perldoc says that FileRotate "provides a simple > object for logging to files under the Log::Dispatch::* system", so I'm > surprised that it will also work with Log::Log4perl, but I'll give it > a try. Yep, Log4perl fully supports the

Re: [log4perl-devel] Limiting file size in log4perl

2009-08-26 Thread Ronald Fischer
On Tue, 25 Aug 2009 09:39 -0700, "Mike Schilli" wrote: > > Is there an easy way to limit the size of a log file? I'm not looking > > for a rollover solution, but for one, where a new file is created if > > the old one exceeds a certain size. > > That's pretty much the case with Log::Dispatch::Fil

Re: [log4perl-devel] Limiting file size in log4perl

2009-08-25 Thread Mike Schilli
On Mon, 24 Aug 2009, Ronald Fischer wrote: > Is there an easy way to limit the size of a log file? I'm not looking > for a rollover solution, but for one, where a new file is created if > the old one exceeds a certain size. That's pretty much the case with Log::Dispatch::FileRotate, a given file

[log4perl-devel] Limiting file size in log4perl

2009-08-25 Thread Ronald Fischer
Is there an easy way to limit the size of a log file? I'm not looking for a rollover solution, but for one, where a new file is created if the old one exceeds a certain size. My idea is to intercept each call to Log4perl, test the size of the log file, and switch to a new log file if the old one