logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gray Jones" <g...@earthcars.com>
Subject Re: changing SMTPAppender subject line
Date Wed, 11 Jul 2001 17:40:47 GMT
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: <mark.russel@pncbank.com>
To: "LOG4J Users Mailing List" <log4j-user@jakarta.apache.org>
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" <log4j-user@jakarta.apache.org>
>                     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" <sscheil@cargosoft.de>
> To: "'LOG4J Users Mailing List'" <log4j-user@jakarta.apache.org>
> 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: log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org

Mime
View raw message