RE: log4net and asp.net
Nicko Cadell <[email protected]> Sat, 21 Feb 2004 16:02:21 -0000
| Newsgroups | gmane.comp.windows.dotnet.log4net.user |
|---|---|
| Message-ID | <[email protected]> |
Sandeep, This is usually related to a permissions issue. Can you enable log4net internal debugging? http://logging.apache.org/log4net/release/manual/faq.html#internalDebug and post the output? Thanks, Nicko > -----Original Message----- > From: [email protected] > [mailto:[email protected]] > Sent: 13 February 2004 20:50 > To: [email protected] > Subject: [Log4net-users] log4net and asp.net > > > 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-ne > t-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 > > _______________________________________________ > > Log4net-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/log4net-users > ------------------------------------------------------- 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