开发者

creating logfile c#

开发者 https://www.devze.com 2022-12-23 21:31 出处:网络
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

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

精彩评论

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

关注公众号