This is an extended SmtpAppender that has its threshold property set to Error
and should only ever process one message.
// untested
public class SendOnceErrorSmtpAppender : SmtpAppender
{
private bool sendOnce = true;
public override void ActivateOptions()
{
Threshold =
LogM
Sanders, Brian wrote:
> You could create a flag and initialize it to false. Then, if an error
> occurs, set it to true and check it at the end of the run. If it's true,
> then email the log file.
So there's no way to do this with SMTPAppender itself?
Then I'll rather use a FileAppender and send th
I will be out of the office starting 14.07.2007 and will not return until
06.08.2007.
I will respond to your message when I return.
Resco GmbH
Geschäftsführer: Michael Mörchen
Amtsgericht Hamburg, HRB 76048 Ust.Ident-Nr.:DE208833022
Haftungsausschluss: Diese Nachricht ist ausschließlich für