Custom database table structure in logging application block

Topics: Logging Application Block
Jun 11, 2007 at 7:03 AM

I am Currently using Microsoft Logging Application Block For Database Logging, But the Problem is that Logging Application Block used its own Tables (Log, Category, CategoryLog) What I want, I want that Rather than logging occurred in these tables, logging should happen in the relevant tables which i update from my ASP.Net Application by increasing the number of fields accordingly, where i have to change this database implementation in Logging Application Block? (As my client said Logging Application Block in Necessary to use).

Thanks in Advance

Mohammad Yaseen
Jun 11, 2007 at 2:08 PM
The DatabaseTraceListener uses stored procedures to write categories ( AddCategory ) and log entries ( WriteLog ) to the database as well as has a setting to specify the database instance ( DatabaseInstance ). If you provide your own custom stored procedures, you should be able to write the information to any tables you want. If you need more flexibililty, you will have to write your own custom DatabaseTraceListener.




David Hayden
Microsoft MVP C#
Sep 25, 2007 at 4:26 PM
This doesn't work!