Custom Trace Listeners

Topics: Building and extending application blocks
Jan 2, 2009 at 5:50 AM
Is there a way to derive from Database Trace Listener other than Custom Trace Listener ?
Jan 2, 2009 at 10:50 AM
You can derive from the FormattedDatabaseTraceListener class itself.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com

Jan 5, 2009 at 2:35 AM
Edited Jan 5, 2009 at 2:37 AM

From a configuration perspective, it should configurable like CustomTraceListener. Due to this limitation i had to derive from  Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.CustomTraceListener to resolve the particular problem. Please direct me if a better deal exists. 

 

 

Jan 5, 2009 at 7:16 AM
You would indeed have to inherit from the CustomTraceListener.  I suggest you just copy the codes you need from the FormattedDatabaseTraceListener class.

Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com