logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morten Andersen <mor...@vianett.no>
Subject SmtpAppender subject
Date Thu, 21 Feb 2008 06:47:30 GMT

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 raw message