Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 52970 invoked from network); 14 Dec 2004 01:49:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Dec 2004 01:49:51 -0000 Received: (qmail 83186 invoked by uid 500); 14 Dec 2004 01:49:51 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 83165 invoked by uid 500); 14 Dec 2004 01:49:51 -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" Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 83149 invoked by uid 99); 14 Dec 2004 01:49:50 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web40425.mail.yahoo.com (HELO web40425.mail.yahoo.com) (66.218.92.36) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 13 Dec 2004 17:49:46 -0800 Received: (qmail 2977 invoked by uid 60001); 14 Dec 2004 01:49:44 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=a1lpgHTgamc8eisxqjbkClsYZisFzot/nEVaj7/pt9urYCXLYs1gFM/RUPCwt08KxDs/HkyRm7vxP993ZNm7uQNOQ5Ak1VSR0YRJBjJKewKUl5QKLEI7K3YUtlYgWpYV49JkHR8bzw5GCeim+AijyLLQhsKWV/shgt7CkRHaPhI= ; Message-ID: <20041214014944.2975.qmail@web40425.mail.yahoo.com> Received: from [24.210.22.138] by web40425.mail.yahoo.com via HTTP; Mon, 13 Dec 2004 17:49:44 PST Date: Mon, 13 Dec 2004 17:49:44 -0800 (PST) From: Ron Grabowski Subject: Re: Log an Exception To: Log4NET User In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N %m baiscally calls ToString() on the exception. Are you sure you exception contains stack information. --- "Collier, Mike" wrote: > I apologize if you get this message twice. I originally sent it to > the > old Sourceforge.net list before I realized it was closed. > > ------------------ > > How would I log an exception (type, message, and stack trace) using, > for > example, the ConsoleAppender or FileAppender? It seems that the "%m" > conversion character in PatternLayout prints my log message, and the > exception type and message, but not the stack trace. I see that the > ExceptionLayout prints out the exception information. I don't see a > way > to use the ExceptionLayout with appenders like the ConsoleAppender. > I > could use the ExceptionLayout with the ADONetAppender though. > > Do I need to implement my own conversion character? > > I'm using Log4NET 1.2.0 beta 8. > > > Thanks!