|
From: Kevin G. <ke...@go...> - 2002-11-24 00:11:00
|
> but could we also have a Perl API to it? Something like
>
> Log::Log4perl->appender_by_name("F1")->
> layout()->define_placeholder("%K", sub { ... });
>
> would be great for debuggability. Also, I could hook into that with something like
>
> Log::Log4perl->appender_by_name("F1")->
> add_filter(sub { ... });
>
> to get a custom filter in later and then I'd be completely happy :).
Mike, after further review, if we do something like this:
sub Log::Log4perl::appender_by_name {
return $Log::Log4perl::Logger::APPENDER_BY_NAME{shift};
}
then we might create problems where the user code has a reference to an
appender, then init_and_watch() reloads everything and the user's
reference is no longer connected to anything, but the user doesn't know
it. Do you see what I mean? Do you think this is a problem?
--
Happy Trails. . .
Kevin M. Goess
(and Anne and Frank)
904 Carmel Ave.
Albany, CA 94706
(510)525-5217
|