On Thu, 12 Feb 2009, David Zhao wrote:

> Got another question: I'd like to enable logging within our home grown
> module packages, such as: Mycompany:Modules:A, Mycompany:Modules:B,
> etc, without setting a logger in the configuration file for every
> module.

If you define a logger like

     log4perl.category.Mycompany.Modules = ...

then it'll cover both Mycompany:Modules:A and Mycompany:Modules:B
because of logger inheritance:

     http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl.pm#Categories

-- Mike

Mike Schilli
m...@perlmeister.com

------------------------------------------------------------------------------
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to