C# Logging - Implementation

Posted by Nagasundar_Tn under C# on 7/24/2012 | Points: 10 | Views : 3917 | Status : [Member] | Replies : 6
Hi Experts


I would like to log the errors for my application in server. Can anyone please explain me what would be best way for logging ? Should I go for Microsoft Enterprise Library? Please suggest me with explanation...

Regards,
T.N.Nagasundar



Responses

Posted by: Ranjeet_8 on: 7/24/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Refer this link.
http://www.dotnetfunda.com/codes/code2838-how-to-save-error-log-in-aspnet.aspx

.

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

Posted by: Rohitkum30 on: 7/27/2012 [Member] Starter | Points: 25

Up
0
Down
You Can use Log4Net for Logging.
Log4net is an open source library that allows .NET applications to log output to a variety of sources (e.g., The console, SMTP or files).
Log4net provides a simple mechanism for logging information to a variety of sources. Information is logged via one or more loggers. These loggers provide 5 levels of logging:

1.Debug
2.Information
3.Warnings
4.Error
5.Fatal


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

Posted by: CGN007 on: 7/30/2012 [Member] Silver | Points: 25

Up
0
Down

use Log4Net (http://logging.apache.org/log4net/)
http://www.codeproject.com/Articles/140911/log4net-Tutorial

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

Posted by: CGN007 on: 7/31/2012 [Member] Silver | Points: 25
Posted by: CGN007 on: 7/31/2012 [Member] Silver | Points: 25

Up
0
Down
One more link to refer http://www.netrostar.com/Howtouselogging

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

Posted by: CGN007 on: 7/31/2012 [Member] Silver | Points: 25

Up
0
Down
Mark as answer if it helps...,That motivates...!!!

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

Login to post response