We had at similar requirement at my company.

I subclassed SMTPAppender but I could not get the 
appender to do what I wanted.

Ultimately, I decided to copy and modify the SMTPAppender code.

We are using a customized SMTPAppender class.

-Sean


-----Original Message-----
From: Steve Mactaggart
To: Log4J Users List
Sent: 4/12/2004 9:26 PM
Subject: SMTPAppender changing message subject

Just a quick question, but is it possible to modify the subject of a
message
sent by the SMTPAppender based on a MDC value, or the log level or the
thread or something?

I filter my email based on subject and from and such, would be good to
be
able to show the messages as "log4j email - FATAL" or "log4j email -
ERROR"
depending on the event that triggered the email.

If this doesn't exist, I may investigate doing this myself, but thought
I'd
check if it does, or anyone else already has made the modification.

Thanks

Steve


---------------------------------------------------------------------
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]

Reply via email to