giovedì 2 marzo 2006 9.38
ramseur
ASP.NET 2.0 Health Monitoring in Rainbow 2.0
You may find more info about Health Monitoring here:
[link]I decided to try this out and sure enough within 15 minutes Rainbow 2.0 has health monitoring. Health monitoring is a built in ASP.NET 2.0 feature that provides log4net features plus more features that help quickly find errors. It can record errors in SQL Server [ without any programming] and also post custom events. For example, if you wanted a SQL record to be inserted everytime someone Logs in or changes their password. You can have any event you can think of be logged into any provider backend. This is a screen shot of my new web.config with HM enabled. Notice in SQL Server, I have the ASPNETDB installed [ RB.ASPNETDB] installed in its own db as health monitoring requires ASPNETDB if you do the default installation. Notice how rainbow is using ASPNETDB [ even if not for membership....yet] with only a few lines in the web.config. No code was needed to deploy health monitoring. There are more fields that you cannot see that go into more about the error. ASP.NET 2.0 reports long drawn out messages about each event to really give the developer a sense of whats going on. So got an error that happens on a request but only your users are producing it? Never fear as HM can catch it and log the url that caused it plus a full detailed message. No need to use Log4net all over rainbow with out of the box support. A gridView to this info can be easily made and with help of the Component module its aspx code can be copied and pasted.