Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 14-Aug-11 15:22pm
v2

Why don't you send email to developer when ever error occurs? Like below
C#
try
{
//Process
}
catch(Exception ex)
{
 ErrorLog(ex);//Common procedure to log the error
 EmailLog(ex);//Common procedure to email the error
}

Logging Error Details with ASP.NET Health Monitoring[^]
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900