log4net and asp.net

[email protected] Fri, 13 Feb 2004 12:50:14 -0800
Newsgroups gmane.comp.windows.dotnet.log4net.user
Message-ID <[email protected]>
Hi,

I am using log4net-1.2.0-beta7 with .net 1.1.  On my development
environment log file is generated, but when I deployed my ASP.Net
Application on the production box it does not generate log file.  I have
granted full control to ASPNET user but no logfile is written.  My Dev Box
has VS Developers user which is not on my production box.  In my
Global.asax.cs  Application_start method I call
log4net.Config.DOMConfigurator.Configure(); and my configuration parameters
are in Web.config file.  I dont know what is wrong.

I would appreciate any help, thanks in advance.

Regards.
Sandeep.



My log4net configuration setting are as follows part of Web.config.


<configSections>
      <section name="log4net" type
="log4net.Config.Log4NetConfigurationSectionHandler,log4net-net-1.1" />
</         <configSections>

            <log4net>

                  <appender name="RollingLogFileAppender" type
="log4net.Appender.RollingFileAppender,log4net-net-1.1">
                  <param name="File" value="rwb-log.txt" />
                  <param name="AppendToFile" value="true" />

                  <param name="MaxSizeRollBackups" value="10" />
                  <param name="MaximumFileSize" value="5MB" />
                  <param name="RollingStyle" value="Size" />
                  <param name="StaticLogFileName" value="true" />

                  <layout type
="log4net.Layout.PatternLayout,log4net-net-1.1">
                        <param name="ConversionPattern" value="%d [%t] %-5p
%c [%x] - %m%n" />
                  </layout>
                  </appender>

                  <!-- Setup the root category, add the appenders and set
the default priority -->

                  <root>
                  <priority value="INFO" />
                  <appender-ref ref="RollingLogFileAppender" />
                  </root>
            </log4net>




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click