Logging Exceptions to Database

Topics: Logging Application Block
Nov 12, 2010 at 7:09 AM


I am planning to use Exception Logging application Bloack to log my Exceptions to the Database. I have a database Called MyPowerData. I want to log the exceptions there. Can you send me any article for logging my exception to the custom database? I am using .Net 4.0 Console application.



Nov 12, 2010 at 9:50 AM


Unfortunately, I couldn't find any specifc article thath you needed. Basically, you can achieve this by creating a custom exception handler class then from there you can directly do the database logging using your custom database.  You can refer to the documentation for creating your own custom exception handler http://msdn.microsoft.com/en-us/library/ff664570(v=PandP.50).aspx.

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.