It's usually worth searching the archives first

http://www.nabble.com/SMTPAppender-tt3029005.html#a3029005


Morten Andersen-2 wrote:
> 
> Hi
> 
> I have a question about the SmtpAppender class. I want to have a dynamic
> subject. It should contain the log level, and the first line of the
> message.
> 
> For example:
> log.Error("My error message") gives a subject like: "ERROR My error
> message"
> 
> log.Fatal("My fatal message\nHello world") gives a subject like: "FATAL My
> fatal message"
> 
> 
> Is this possible?
> 
> Best regards,
> Morten Andersen
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SmtpAppender-subject-tp15605715p15628957.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

Reply via email to