in reply to log4perl collecting (buffering) messages

http://search.cpan.org/perldoc/Log::Log4perl::FAQ#How_can_I_configure_Log::Log4perl_to_send_me_email_if_something_happens?
log4perl.appender.Mailer = Log::Dispatch::Email::MailSend
log4perl.appender.Mailer.to = drone@example.net
log4perl.appender.Mailer.subject = Something's broken!
log4perl.appender.Mailer.layout = SimpleLayout

Its unclear from the documentation when the email is sent, but its not immediately

  • Comment on Re: log4perl collecting (buffering) messages (Log::Log4perl::FAQ)

Replies are listed 'Best First'.
Re^2: log4perl collecting (buffering) messages (Log::Log4perl::FAQ)
by coke4all (Novice) on Mar 14, 2013 at 10:17 UTC

    hi

    thanks for your reply, but i want to determine exactly when to send the mail. I know that your solution is buffering the logs before sending. Your can disable buffering with:

    log4perl.appender.Mailer.buffered = 0

    in your log4perl.conf

    but this is not what i´m searching for ... nevertheless THANKS