ASP.NET日志记录-log4net还是运行状况监视? [英] ASP.NET Logging - log4net or health monitoring?

查看:105
本文介绍了ASP.NET日志记录-log4net还是运行状况监视?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找3.5中的全新asp.net网站,该网站绝对没有错误处理或记录日志.记录和处理错误有哪些好的选择?我在1.1框架上使用过Log4Net,但听说在3.5中可能有更好的选择.

I'm looking at a fresh asp.net site in 3.5 that has absolutely no error handling or logging. What are some good options for logging and handling errors? I've used Log4Net on the 1.1 framework but hear there are potentially better options in 3.5.

推荐答案

一个选项是ELMAH.我在这里问了一个问题: ASP.NET错误处理.

One option is ELMAH. I asked a question about it here: ASP.NET Error Handling.

从那时起,我已经对其进行了稍微修改,并且日志记录和电子邮件功能非常强大,并且易于通过web.config文件进行集成.

Since then, I have implemented a slightly modified version of it and the logging plus e-mail is great and easy to integrate via the web.config file.

这篇关于ASP.NET日志记录-log4net还是运行状况监视?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆