logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DWilli...@strohlsystems.com
Subject Re: I searched the archives and didn't see it jump out at me. I apologize if I missed anything but here goes:
Date Wed, 24 Aug 2005 18:20:03 GMT
This is a standard problem with ASP.NET applications.  The problem is that
you are attempting to create the logfile.log in the System32 directory.
Add the full path to where you would like the file to be created and ensure
that the ASPNET user has write access to the directory.



             "McAninch, Robin"                                             
             mellon.com>                                                To 
             08/24/2005 02:12                                           cc 
                                       I searched the archives and didn't  
             Please respond to         see it jump out at me.  I apologize 
              "Log4NET User"           if I missed anything but here goes: 

I searched the archives and didn't see it jump out at me.  I apologize if I
missed anything but here goes:

I have an ASP.NET app that will not log.  I am using version1.1.4322 on an
XP pentium IV Dell.  Upgrading versions right now isn't an option for me.
I have in the web config file these entries:

             <section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />

<!-- This section contains the log4net configuration settings -->
<log4net debug="true">
             <!-- Define some output appenders -->
             <appender name="rollingFile"
                         <param name="File" value="logfile.log" />
                         <param name="AppendToFile" value="true" />
                         <param name="RollingStyle" value="Date" />
                         <param name="DatePattern" value="yyyy.MM.dd" />
                         <param name="StaticLogFileName" value="true" />
                                     <param name="ConversionPattern"
value="%d [%t] %-5p %C - %M &lt;&gt; %m%n%n" />
             <!-- Setup the root category, add the appenders and set the
default priority -->
                         <level value="DEBUG" />
                         <appender-ref ref="rollingFile" />

In the classes I have entered:

private static readonly ILog log =

I have put all over the methods the DomConfigure statement and a call like
below in a button click event:

log.Fatal("write me");

The problem is that I get nothing written to a log file anywhere.  This
code is fine if I am using a windows application and if I use nHibernate in
my app it gets configured correctly but as a standalone web app I am not
getting anything.  I am not even getting an exception coming back.  I have
even tried raising the ASPNET user's rights to "PowerUser" level (in
response to some info in the archives) and this won't get me a log file.
Does anyone know what I am doing incorrectly?

Thank you for you time on this very frustrating matter,

Robin McAninch

Robin McAninch

1 Mellon Bank Centre,
Aim# 1625
Pittsburgh, Pa, 15258
Phone: 412.234.2461
Email: rmcaninch@russellmellon.com

View raw message