Custom database trace Listner in EL 5.0

Topics: Logging Application Block
Jul 31, 2013 at 7:00 AM

I want to customise the Log table by adding one more column.Need to add corresponding changes in Custom LogEntry and Custom Database Trace Listner.How to achive this?

Could you please send me the solution for this?

Jul 31, 2013 at 1:02 PM
See the Custom Database Trace Listener Sample on the Enterprise Library Sample Projects Page:

The sample project shows a sample of a Custom Database Trace Listener that adds an additional column to the out of the box FormattedDatabaseTraceListener. The CustomDatabaseTraceListener will check the LogEntry to see if it is a CustomLogEntry and if it is then it will add the CustomData information into the CustomData column in the [Log] table.

Randy Levy
Enterprise Library support engineer
Support How-to