The best bet would be to enable internal debug: http://logging.apache.org/log4net/release/manual/faq.html#internalDebug
As you are running under ASP.NET you will need to use the sysinternals dbgview app to see the output. Nicko > -----Original Message----- > From: Cheng [mailto:[EMAIL PROTECTED] > Sent: 18 March 2005 17:15 > To: [email protected] > Subject: wired log4net problem: it refused to log anything. > > I've been using log4net for a while and it works for all the project. > But I met a problem today that log4net refuses to log > anything in an asp.net application. > > here is the config: > > <configSections> > <!-- Register a section handler for the log4net > section --> > <section name="log4net" > type="System.Configuration.IgnoreSectionHandler" /> > </configSections> > > <!-- This section contains the log4net configuration > settings --> > <log4net> > <!-- Define some output appenders --> > <appender name="RollingFileAppender" > type="log4net.Appender.RollingFileAppender"> > <param name="File" > value="d:\\logfiles\\Log.txt" /> > <param name="AppendToFile" value="true" /> > <param name="RollingStyle" value="Size" /> > <param name="MaxSizeRollBackups" value="10" /> > <param name="MaximumFileSize" value="1000KB" /> > <param name="StaticLogFileName" value="true" /> > <layout type="log4net.Layout.PatternLayout"> > <param name="ConversionPattern" > value="[%d{MM/dd HH:mm:ss,fff}][%-5p]:%c{2}.%M():[%x] %m%n" /> > </layout> > </appender> > > <!-- Setup the root category, add the appenders and set > the default level --> > <root> > <!--ALL DEBUG INFO WARN ERROR FATAL OFF --> > <level value="ALL" /> > <appender-ref ref="RollingFileAppender" /> > </root> > </log4net> > > I've assigned "full control" permission to ASPNET account for > d:\logfiles\ when I tried to trace into log4net, I found that > the the function IsDisabled(Level level) in Hierarch.cs line > 447 is always return true (because the Configure variable is > true in line 454). > Can't figure out why? Please help. > > btw: Other asp.net application still works fine, there are > logging into the same directory with different file name. the > config above is copied from a working asp.net app with only > change of the logfile name. >
