Custom TraceListener. Good practices.

Topics: Logging Application Block
Mar 23, 2011 at 2:21 PM
Edited Mar 23, 2011 at 2:22 PM


I want create Custom Trace Listener using Ent.Lib 4.1 (and future entlib 5.0).

My Trace Listener will be call to WCF Service (Web Service). The WCF Service really inserts data in DB.

Any good sample with source code, and good patterns and practices for create  Custom Trace Listener ??



Mar 24, 2011 at 12:21 AM

Check out EntLib 5.0's extensiblity labs.  The steps for creating custom trace listener in 4.1 with basic integration with the config tool is just the same as that with version 5.0.  As for full integration with the config tool, it's also included in the extensibility labs but it's different for version 4.1.  Here's a sample for version 2.0 but it also applies to version 4.1


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.