Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have developed a website in c#, its working fine. I just want to log all the activities and errors of my website. I am having difficulties to use log4net as I have to log Asp.net website not a web application and cant find the global.asax file in my website which is required to configure log4net.

P.S: I am using visual studio 2010.

What I have tried:

I have tried the following Activity Logging and Error Logging in ASP.NET[^]

But this solution is for web appliation and I need the solution for website.
Posted

1 solution

Some popular error loggers are
Log4Net
[^]

Elmah
[^]
 
Share this answer
 
Comments
Aqeel Shoukat 23-Mar-17 13:51pm    
can you please provide a reference to examples on how to use log4net/elmah for logging...

P.S: I am a newbie in this field

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900