Subject: | Wrong work with Threshold and buffered default value |
uname -a: FreeBSD statbase04.rambler.ru 6.2-20061003-SNAP FreeBSD 6.2-
20061003-SNAP #0: Tue Oct 3 12:22:21 UTC 2006
perl: perl5 (revision 5 version 8 subversion 8) configuration:
platform: osname=freebsd, osvers=6.2-20061003-snap, archname=amd64-
freebsd
Log-Dispatch-2.20
Log-Log4perl-1.14
When i wrote Mailer config like
log4perl.appender.Mailer = Log::Dispatch::Email::MailSend
log4perl.appender.Mailer.to = $mailTo
log4perl.appender.Mailer.subject = lstatistic failure
log4perl.appender.Mailer.layout =
Log::Log4perl::Layout::PatternLayout
log4perl.appender.Mailer.Threshold = WARN
log4perl.appender.Mailer.layout.ConversionPattern = \%d [\%P] [\%p] \%F
\%L \%m\%n
and in begin got
log4perl.logger = TRACE, Logfile, Screen, Mailer
In exececution time i got a hundrets mails, if i write:
log4perl.appender.Mailer = Log::Dispatch::Email::MailSend
log4perl.appender.Mailer.to = $mailTo
log4perl.appender.Mailer.subject = lstatistic failure
log4perl.appender.Mailer.layout =
Log::Log4perl::Layout::PatternLayout
log4perl.appender.Mailer.Threshold = WARN
log4perl.appender.Mailer.buffered = 0
log4perl.appender.Mailer.layout.ConversionPattern = \%d [\%P] [\%p] \%F
\%L \%m\%n
No such problem.
For these reasons i think, that is a bug in module (or in parent module
logic)