Home > Forum > ASP.NET > Save exception in a log file

Save exception in a log file

by Dave   on Oct 25, 2013   Category: ASP.NET  |  Views: 1898    |  Points: 5   |  Starter 
  Reply
Hi,
How do I save error in log file i.e txt file using a ASP.NET C#
Eg 25/10/2013 3.30 PM Divide by zero exception.
Similarly all the errors in the web application will be saved in the Log.txt file.

Bookmark and Share:
 
  User Reply  | Ask a question  |   Reply 
  Re :Save exception in a log file   
by Thamil
on Oct 25 2013 4:17AM
Points : 10
Gold 
Hello Dev

Pleas verify the below link how to handle errors and logging into log file

http://www.codeproject.com/Articles/2344/Create-Simple-Error-Log-Files-using-ASP-NET-and-C
http://forums.asp.net/t/1815073.aspx
http://msdn.microsoft.com/en-us/library/bb397417.ASPX

please let me know if you need any further details.

Recent Post

Latest Posts