logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sriram Ranganathan <sriram.ra...@gmail.com>
Subject RE: Using log4Net from my web service (.net 2.0, C#); problem solved
Date Thu, 30 Oct 2008 14:00:40 GMT

The only change I made was this:

I included a Global.asax file to my web service, and wrote the following
line of code in the start method. That is it ... the code worked and the
logging happened.

***********************************************

void Application_Start(object sender, EventArgs e) 
    {
        // Code that runs on application startup
        log4net.Config.XmlConfigurator.Configure();
    }

***********************************************

Thanks everyone, for listening!

Cheers

Sriram Ranganathan
-- 
View this message in context: http://www.nabble.com/Using-log4Net-from-my-web-service-%28.net-2.0%2C-C-%29--nothing-happens-tp20244011p20247590.html
Sent from the Log4net - Users mailing list archive at Nabble.com.


Mime
View raw message