网站错误监控 [英] Website Error Monitoring

查看:62
本文介绍了网站错误监控的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库中有一个exceptionLog表,其中记录了所有异常和错误.
有什么方法可以自动监视此表.我的意思是说,如果在任何情况下wesite崩溃,都应该向开发人员表明网站已崩溃或发生某种情况.

I have an exceptionLog table in database where i log all the exceptions and errors.
Is there any way to monitor this table automatically. I mean to say if the wesite crashes in any scenario there should be an indication to developer that website has been crashed or something. so that he can fix the bug.

推荐答案

为什么在发生错误时不向开发人员发送电子邮件?像下面的
Why don''t you send email to developer when ever error occurs? Like below
try
{
//Process
}
catch(Exception ex)
{
 ErrorLog(ex);//Common procedure to log the error
 EmailLog(ex);//Common procedure to email the error
}


使用ASP.NET健康监控记录错误详细信息 [ ^ ]


Logging Error Details with ASP.NET Health Monitoring[^]


您可以像Raja所说的那样使用ASP.NET Health监视支持,但是由于您已经将异常记录到数据库中,因此可以使用SQL Server通知服务的帮助.向各个团队发送电子邮件.您可以配置服务,并根据某些特定条件/严重性/错误类型的优先级(登录到数据库中)来通知相应的团队.
You can use ASP.NET Health monitoring support as Raja said, but as you are already logging the exception into database you can take help of SQL Server notification services to Send Emails to respective teams. You can configure the services and based on some certain condition / severity / priority of error type logged into your database you can notify the respective team.


这篇关于网站错误监控的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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