in reply to Re: Re: help with Log::Log4perl config file
in thread help with Log::Log4perl config file
The docs are there to help you. The way I see it, it does not seem possible to accomplish what you need without using different classes. You could create three different bogus classes to cater for debug, info and error.
Take a look at the examples in Log::Log4perl::Config.
As a sidenote, for more verbosity:
log4perl.logger = DEBUG, A1This really means:
Maybe I was not clear in the previous post.
I think you need this:
log4perl.logger.Proj.Module1.d = DEBUG, A1 log4perl.logger.Proj.Module1.i = INFO, A2 log4perl.logger.Proj.Module1.e = ERROR, A3 # and define A1, A2, A3, etc...
Then in your code,
package Proj.Module1; # ... my $dlogger = get_logger(__PACKAGE__ . ".d"); my $dlogger = get_logger(__PACKAGE__ . ".d"); my $elogger = get_logger(__PACKAGE__ . ".e");
This is the best method I can think of but, of course, I stand to be corrected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: help with Log::Log4perl config file
by saintmike (Vicar) on May 30, 2004 at 22:28 UTC |