开发者

creating logfile c#

can anyone help me in creating a 开发者_高级运维"logfile" to write all the exceptions that occur in C#


Apart from the already suggested frameworks, there is also built-in tracing support in the .NET Framework.


http://logging.apache.org/log4net is the standard tool in my experience.


Instead of writing your own logging framework, you can use one of the following:

Enterprise Library Logging Application Block

Nlog

log4net


You can use a logging framework like log4net


For logging only exceptions take a look at elmah for other logging look at log4net

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜