Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 85327 invoked from network); 4 Jul 2005 18:12:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jul 2005 18:12:53 -0000 Received: (qmail 24176 invoked by uid 500); 4 Jul 2005 18:12:51 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 24126 invoked by uid 500); 4 Jul 2005 18:12:49 -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 24112 invoked by uid 99); 4 Jul 2005 18:12:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 11:12:49 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jlivermore@bigwaveprojects.com designates 72.36.144.154 as permitted sender) Received: from [72.36.144.154] (HELO WINDOWS-2003.mail.dotnetsql.com) (72.36.144.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 11:12:50 -0700 Received: from DFWSPARE4 ([24.1.89.66]) by mail.dotnetsql.com with MailEnable ESMTP; Mon, 04 Jul 2005 14:12:44 -0400 Reply-To: From: "John Livermore" To: "'Log4NET User'" Cc: Subject: RE: Can't get logging output Date: Mon, 4 Jul 2005 13:09:50 -0500 Organization: BigWave Projects Company MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcWANCeKcMT7CjsURG2LScuHfFaxRAAj2IFQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <20050704010311.22863.qmail@web32208.mail.mud.yahoo.com> Message-ID: <1A235E39E087403F92B7DEB36C07DA7E.MAI@mail.dotnetsql.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have it working now. Thanks for the help. John -----Original Message----- From: Ron Grabowski [mailto:rongrabowski@yahoo.com] Sent: Sunday, July 03, 2005 8:03 PM To: Log4NET User Subject: Re: Can't get logging output Where is your log4net.config file? If should be in the same folder as web.config. An alternative to using an attribute to configure log4net is to call the static Configure method yourself. This is how I configure log4net when using it with Asp.Net: http://tinyurl.com/854gb http://www.mail-archive.com/log4net-user%40logging.apache.org/msg01960.html --- John Livermore wrote: > I am not able to get logging output in my ASP.NET web application. I > am using Log4Net 1.2.9.0, ASP.NET 1.1, Windows XP. > > I am trying to get output when I hit this line of code... > log.Info("hello world"); > > My AssemblyInfo.cs contains... > [assembly: > log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config", > Watch=true)] > > My Log4Net.config file contains... > > type="log4net.Appender.TraceAppender"> > > value="%d{yyyy/MM/dd|HH:mm:ss.ff}|%t|%-5p|%-20c{2}|%x|%m%n" /> > > > > > > > > > 'Everyone' has full access to the root of my hard drive, so I don't > believe it is a security issue. > > I turned debugging on and this is the output I receive (slightly > formatted for clarity)... > > ================================= > log4net: log4net assembly [log4net, Version=1.2.9.0, Culture=neutral, > PublicKeyToken=b32731d11ce58905]. Loaded from > [c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net > files\root\3236e31e\31083b00\assembly\dl2\b2fca915\00a2828d_e02dc501\log4net > .dll]. (.NET Runtime [1.1.4322.2032] on Microsoft Windows NT > 5.1.2600.0) > > log4net: DefaultRepositorySelector: defaultRepositoryType > [log4net.Repository.Hierarchy.Hierarchy] > > log4net: DefaultRepositorySelector: Creating repository for assembly > [BigWave, Version=1.0.2009.17128, Culture=neutral, > PublicKeyToken=null] > > log4net: DefaultRepositorySelector: Assembly [BigWave, > Version=1.0.2009.17128, Culture=neutral, PublicKeyToken=null] Loaded > From [c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net > files\root\3236e31e\31083b00\assembly\dl2\3fefaf7e\2043be0a_1b7fc501\bigwave > .dll] > > log4net: DefaultRepositorySelector: Assembly [BigWave, > Version=1.0.2009.17128, Culture=neutral, PublicKeyToken=null] does not > have a RepositoryAttribute specified. > > log4net: DefaultRepositorySelector: Assembly [BigWave, > Version=1.0.2009.17128, Culture=neutral, PublicKeyToken=null] using > repository [log4net-default-repository] and repository type > [log4net.Repository.Hierarchy.Hierarchy] > > log4net: DefaultRepositorySelector: Creating repository > [log4net-default-repository] using type > [log4net.Repository.Hierarchy.Hierarchy] > ================================= > > Can you tell what the problem might be? > > Thanks, > John > > >