How to implement exception and information logging to SQL database.

Topics: Building and extending application blocks, Exception Handling Application Block, General discussion, Logging Application Block
Nov 19, 2010 at 10:43 AM

Hi,

Im new to enterprise library and stucked now.

Im trying to log exceptions into SQL server. I used Enterprise Library V5 configuration tool and added application block using Log Exception to Database wizard. Now im stucked as to what will be the database design for logging and what to do next. My company uses Enterprise Library 4 for logging into flat files.

 

Please help.

 

Thanks in advance.

Apurva Saxena

Nov 19, 2010 at 6:07 PM

Look in the Scripts directory included in the Entlib source code. There's a .sql script in there that will create a database for logging. Even if you don't use that script, it'll tell you what sprocs are needed.