{"id":162,"date":"2007-05-20T11:53:53","date_gmt":"2007-05-20T16:53:53","guid":{"rendered":"\/cgi\/wp\/?p=162"},"modified":"2008-02-14T11:54:31","modified_gmt":"2008-02-14T16:54:31","slug":"aspnet-20-health-monitoring","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=162","title":{"rendered":"ASP.NET 2.0 Health Monitoring"},"content":{"rendered":"<div class=\"entry\">In addition to trace listeners, ASP.NET 2.0 has added a health monitoring  system to log web events for a web application. <strong>Health Monitoring  <\/strong>is similar to trace listeners with the additional option of logging the  events to a SQL Server database.The only thing that distinguishes health monitoring from trace listeners is  that it is exclusively for ASP.NET 2.0 web applications and not for Windows form  applications. Health monitoring allows you to capture web events and add them to  the traditional ASP.NET trace page. It can also send emails about web events.  All of this can be set up in the web.config file without any special coding  unless you want to create your own events.<\/p>\n<p>So when should you use health monitoring and when should you use trace  listeners? Health monitoring is the best choice for a production site that you  want to monitor. You can monitor application starts and terminations, user  authentications, and errors that occur while the web application is running. A  trace listener is better for debugging when you want to output the value of many  variables and trace the execution of your code.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In addition to trace listeners, ASP.NET 2.0 has added a health monitoring system to log web events for a web application. Health Monitoring is similar to trace listeners with the additional option of logging the events to a SQL Server &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=162\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/162"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":0,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}