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
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
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
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