Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 45871 invoked from network); 20 Aug 2007 20:33:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2007 20:33:03 -0000 Received: (qmail 27752 invoked by uid 500); 20 Aug 2007 20:32:59 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 27735 invoked by uid 500); 20 Aug 2007 20:32:59 -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 27724 invoked by uid 99); 20 Aug 2007 20:32:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 13:32:59 -0700 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: domain of peter.drier@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 20:32:55 +0000 Received: by nf-out-0910.google.com with SMTP id d3so685932nfc for ; Mon, 20 Aug 2007 13:32:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Jaj+yE8dU/c6JQzKXJDxJxCcsDyrNsqAidX4pgkhE7RsSRaeBFwFx4A8b75GDkO4xUb4AxbriMygBSnHB8kg/jLMs4wNetbum/TiMLuHbE6RJrtkGpuqTd0owHRrL9u7QJKWrlG8PyC+2URlomR697DAFX2RliCm/wIv0FRn6LQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=JAedsZZPXcA4sCkgCwd7cp6+ADxZsNxpNQGBAifbEL0pHLUub5jYLkqyNeVi8MafalmwwYUECTqBr/OQcWxkRdljgUfDhfZoPIX4aNRN9klRHzx1Pni0Nhjj/CAbs1xHKtFPO9wVt49jppE0Dty/S2vYlqtekkWn+NtBG6kQl5A= Received: by 10.78.201.10 with SMTP id y10mr2246656huf.1187641953552; Mon, 20 Aug 2007 13:32:33 -0700 (PDT) Received: by 10.78.42.13 with HTTP; Mon, 20 Aug 2007 13:32:33 -0700 (PDT) Message-ID: Date: Mon, 20 Aug 2007 16:32:33 -0400 From: "Peter Drier" To: "Log4NET User" Subject: Re: Line numbers in release mode In-Reply-To: <000401c7e367$615a8f50$4a86a8c0@SmallDell> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_123959_8554883.1187641953517" References: <000401c7e367$615a8f50$4a86a8c0@SmallDell> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_123959_8554883.1187641953517 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The PDB is what has the line number information in the first place.. Without it, there's no line number information for l4n to use.. -Peter On 8/20/07, Phillip Ring wrote: > > I am using log4net to log exceptions, and I thought I saw a way for > log4net > to get the line number of the exception even if the program was compiled > in > release mode. I know how to get the line number of call to logger.Error > (), > etc. using patterns, but I want a way to get the line number of the > exception without it being in debug mode. > > Phillip Ring > Software Developer > Hitcents.com > > ------=_Part_123959_8554883.1187641953517 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The PDB is what has the line number information in the first place..  Without it, there's no line number information for l4n to use.. 

-Peter

On 8/20/07, Phillip Ring <Phillip.Ring@hitcents.com> wrote:
I am using log4net to log exceptions, and I thought I saw a way for log4net
to get the line number of the exception even if the program was compiled in
release mode.  I know how to get the line number of call to logger.Error (),
etc. using patterns, but I want a way to get the line number of the
exception without it being in debug mode.

Phillip Ring
Software Developer
Hitcents.com


------=_Part_123959_8554883.1187641953517--