Okay here they are.  The reason I didn't post to the list was because I
didn't want to flood people with the attachments.  But here you go.

The DynamicSMTPAppender is basically a re-work of the
SMTPAppender class that comes with log4j (actually I've been meaning to
re-do this one and extend it from SMTPApender because I believe Ceki fixed
the reason why I couldn't subclass before).

Then the EarthcarsSMTPAppender is a subclass of the DynamicSMTPAppender
where we do our specific stuff.  We have our own Exception class so we build
our subject line from the exception.

Good luck

Gray


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 12:03 PM
Subject: Re: changing SMTPAppender subject line


>
> why don't you just post it on the list?  There may be other people who
> would also like the information
>
> Mark Russell
> PNC
> 412-768-9603
>
>
>
>                     "Gray Jones"
>                     <gray@earthca        To:     "LOG4J Users Mailing
List" <[EMAIL PROTECTED]>
>                     rs.com>              cc:
>                                          Subject:     Re: changing
SMTPAppender subject line
>                     07/11/2001
>                     09:38 AM
>                     Please
>                     respond to
>                     "LOG4J Users
>                     Mailing List"
>
>
>
>
>
> We did something like this.  Send me your email address and I'll send you
> the code.
>
> ----- Original Message -----
> From: "Scheil, Sven" <[EMAIL PROTECTED]>
> To: "'LOG4J Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 11, 2001 9:00 AM
> Subject: changing SMTPAppender subject line
>
>
> >
> > Hi,
> >
> > I would like to change the SMTPAppender, so the subject line isn't
static
> > and I can control the content of the subject line from my source code.
> >
> > A sample subject line:
> >
> > servername fatal error: couldn't open database connection
> >
> > The background is: I want to resend this emails via SMS and there is
only
> > the subject used.
> >
> > Is there someone who had done this before?
> >
> > Sven
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

EarthcarsSMTPAppender.java

DynamicSMTPAppender.java

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to