Author: inutan@gmail.com | Posted on: 7/30/2009 11:39:46 AM | Views : 494

Hello there,
I am trying to configure log4net to log errors in my ASP.Net application.
My code details are:
1. In application Web.Config file I have added following:
<configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false"/> </configSections> <log4net> <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" > <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" /> </layout> </appender> <logger name="DummyApp.LoggingExample"> <level value="ERROR" /> <appender-ref ref="EventLogAppender" /> </logger> < ...

Go to the complete details ...