Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 29586 invoked from network); 21 Feb 2008 06:45:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2008 06:45:09 -0000 Received: (qmail 95637 invoked by uid 500); 21 Feb 2008 06:45:04 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 95348 invoked by uid 500); 21 Feb 2008 06:45:03 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 95334 invoked by uid 99); 21 Feb 2008 06:45:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 22:45:03 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.142.108.28] (HELO exchange2007.vianettdom.com) (193.142.108.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 06:44:30 +0000 Received: from exchange2007.vianettdom.com ([10.0.51.4]) by exchange2007.vianettdom.com ([10.0.51.4]) with mapi; Thu, 21 Feb 2008 07:47:31 +0100 From: Morten Andersen To: "log4net-user@logging.apache.org" Date: Thu, 21 Feb 2008 07:47:30 +0100 Subject: SmtpAppender subject Thread-Topic: SmtpAppender subject Thread-Index: Ach0VaEPgletFwi0QOGZb7heXfmPGA== Message-ID: <92D0FB67A70D5C48A47DCB43D82F7448A7FDB6B904@exchange2007.vianettdom.com> Accept-Language: nb-NO Content-Language: nb-NO X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: nb-NO Content-Type: multipart/alternative; boundary="_000_92D0FB67A70D5C48A47DCB43D82F7448A7FDB6B904exchange2007v_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_92D0FB67A70D5C48A47DCB43D82F7448A7FDB6B904exchange2007v_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I have a question about the SmtpAppender class. I want to have a dynamic su= bject. 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 --_000_92D0FB67A70D5C48A47DCB43D82F7448A7FDB6B904exchange2007v_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

I have a question about the SmtpApp= ender class. I want to have a dynamic subject. It should contain the log level, a= nd the first line of the message.

 

For example:

log.Error(“My error message&#= 8221;) gives a subject like: “ERROR My error message”

 

log.Fatal(“My fatal message\n= Hello world”) gives a subject like: “FATAL My fatal message”

 

 

Is this possible?=


Best regards,

Morten Andersen

--_000_92D0FB67A70D5C48A47DCB43D82F7448A7FDB6B904exchange2007v_--