Subject: | log4perl.threshold = OFF doesn't work |
Hello.
It seems to me configuration
log4perl.threshold = OFF
doesn't work any more as it described in Log::Log4perl::FAQ
documentation.
I attach script with configuration file which prints info message on
STDOUT, but according to the documentation it shouldn't.
=== MY LOG4PERL CONFIG ===
log4perl.threshold = OFF
# Define root logger
log4perl.logger = INFO, log_to_stdout
# Define appender for logging on stdout
log4perl.appender.log_to_stdout = Log::Log4perl::Appender::Screen
log4perl.appender.log_to_stdout.stderr = 0
log4perl.appender.log_to_stdout.layout =
Log::Log4perl::Layout::PatternLayout
log4perl.appender.log_to_stdout.layout.ConversionPattern = %m%n
=== SCRIPT ===
#!/usr/bin/perl
use strict;
use warnings;
use Log::Log4perl qw/get_logger/;
Log::Log4perl->init("threshold.conf");
get_logger->info("This is info message");