From: Mike S. <m...@pe...> - 2004-10-15 06:53:34
|
On Thu, 14 Oct 2004, Tod Harter wrote: > My configuration file... Can you also provide a code sample? Ideally, a test case of what you're seeing and what you're expecting. > I've also discovered that if you set your rootLogger to say 'INFO' and > lower levels of the heirarchy to 'DEBUG', you NEVER get anything except > 'INFO' > level and lower from ANY part of the heirarchy. This seems to be in > direct contradiction of the manual and tutorials. In this case, you'll get INFO messages in the root logger and DEBUG messages in the 'lower levels of the hierarchy' as you've defined. Example: use Log::Log4perl qw(get_logger); my $conf = q( log4perl.rootLogger = INFO, Screen log4perl.category.Bar.Twix = DEBUG, Screen log4perl.appender.Screen = Log::Log4perl::Appender::Screen log4perl.appender.Screen.layout = Log::Log4perl::Layout::SimpleLayout ); Log::Log4perl::init(\$conf); my $logger = get_logger("Bar::Twix"); $logger->debug("Blah"); prints two messages, one from each logger: DEBUG - Blah DEBUG - Blah Can you provide a test case if you're seeing anything suspicious? -- Mike Mike Schilli m...@pe... |