create error log in c#..

Posted by Gopal_nivas under ASP.NET on 11/12/2010 | Points: 10 | Views : 16521 | Status : [Member] | Replies : 5
hi..

how to create a error log file using c#..

that is catch the exception and write the exception details to a text file...


how to do this..

need ur suggestions..

regards
gopal.s




Responses

Posted by: Tripati_tutu on: 11/12/2010 [Member] Bronze | Points: 25

Up
0
Down
Dear Gopal_nivas ,

You can visit http://www.dotnetfunda.com/misc/articles/3rd3204-error-logging-using-aspnet-20.aspx to get the solution.

Thanks

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lalji_mer on: 11/12/2010 [Member] Bronze | Points: 25

Up
0
Down
Hi,

You will get here step by step guide...

http://www.dotnetspark.com/kb/301-log-error-exception-text-file.aspx
http://www.dotnetcurry.com/ShowArticle.aspx?ID=94

LP MER

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: SheoNarayan on: 11/14/2010 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Gopal,

I have written an article focusing on your problem, please have a look http://www.dotnetfunda.com/articles/article1070-error-logging-in-aspnet-.aspx.

Hope this will help you.


Regards,
Sheo Narayan
http://www.dotnetfunda.com

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hughjackman on: 5/13/2013 [Member] Starter | Points: 25

Up
0
Down
Hi!



Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hughjackman on: 5/13/2013 [Member] Starter | Points: 25

Up
0
Down
Hi!

Generally we are not interested to show any type of application error to end user. Error logs are very important for collecting all error data generated by an
application. It is more useful during an early or beta release of a product. That's why it is better to store any kind of exceptions in one place. This files can be send by email or others technology to developer. Time to time developer must analyze them and fix all the bugs without knowing clients. It will increase application performance.

So you can get the help from following links for creating error log file in C#

http://www.mindstick.com/Blog/458/How%20to%20Create%20Log%20File%20in%20C

http://cybarlab.blogspot.in/2013/03/write-error-log-into-file-in-c-sharp.html

http://www.codeproject.com/Articles/2344/Create-Simple-Error-Log-Files-using-ASP-NET-and-C


Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response