Subject: | Threshold Configuration Bug |
This line at around Line 440 of Log::Log4perl::Config.pm:
if($data->{appender}->{$appname}->{threshold}) {
die "threshold keyword needs to be uppercase";
}
...states that the threshold keyword needs to be uppdercase. However
that predicate fires WHENEVER the threshold keyword contains ANYTHING at
all.
There are a number of solutions:
1. Change it so that it does what the die says
2. Eradicate the die (and STDERR it or ignore it altogether)
My solution has been to eradicate the die totally.
This happens when you have a configuration like this:
log4perl.logger=DEBUG, FILE
# Notice how this threshold _is_ uppercase
log4perl.apender.FILE.threshold=INFO
log4perl.appender.FILE=Log::Log4perl::Appender::File
Log4perl.appender.FILE.filename=/tmp/my.log
log4perl.appender.FILE.mode=write
Or even this:
log4perl.logger=DEBUG, FILE
# Notice how this threshold is _not_ uppercase
log4perl.apender.FILE.threshold=info
log4perl.appender.FILE=Log::Log4perl::Appender::File
Log4perl.appender.FILE.filename=/tmp/my.log
log4perl.appender.FILE.mode=write
...
Once you get rid of this issue, the threshold keyword works as expected;
that is to say it appears to be a CONFIG only issue.
I'm using:
This is perl, v5.8.8 built for i86pc-solaris-thread-multi
$Log::Log4perl::VERSION = 0.52
I've noticed this on:
FreeBSD 5.x
Ubuntu GNU/Linux latest
By using "source" link on search.cpan.org
...for the latest version.
Thanks,
DSL