|
From: Jonathan S. <sw...@po...> - 2007-11-06 17:51:33
|
> On Mon, 5 Nov 2007, Jonathan Swartz wrote:
>
>> Right, I expected that new categories would keep cropping up. Why
>> would it be a problem for an appender to open new filehandles on the
>> fly? Other than worrying about maximum # of filehandles?
>
> Categories are added at init() time, not at log() time. If you add
> a new
> category to Log4perl, you have to run init().
Huh? I can add a category at runtime like
my $log = Log::Log4perl->get_logger('foo.bar.baz');
without having declared foo.bar.baz at init() time.
I think you mean that categories are associated with appenders at init
() time, right? But I'm not looking to create a ton of different
appenders. I'm looking to create a single appender that handles all
categories, and automatically writes to the right filename based on
the category passed to log().
Jon
|