If this is a web-service, did you modify your Global.asax
Application_Start method like so:
void Application_Start(object sender, EventArgs e)
{
// This tells log4net to get it's configuration from the
web.config
log4net.Config.XmlConfigurator.Configure();
}
Thanks, Theron
-----Original Message-----
From: sspost [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 13, 2008 11:52 AM
To: [email protected]
Subject: Cannot log using Log4Net in a web app
I have a web application written using .NET framework 2.0 and VB.net. I
am
using log4net to log errors. So far I havent been successful in doing so
I have added log4net references to my application, modified the
web.config
(I have even tried writing a new config file but didnt help) with the
relevant code and added code in the code behind for logging but this
doesnt
work. Do I have to write extra code to start logging using log4net, if
so
what code i should write and where?
--
View this message in context:
http://www.nabble.com/Cannot-log-using-Log4Net-in-a-web-app-tp17213243p1
7213243.html
Sent from the Log4net - Users mailing list archive at Nabble.com.