System.Diagnostics.Trace -> Ent Lib

Topics: Logging Application Block
Jun 5, 2008 at 2:42 PM
Since Trace is built-in to .NET and Ent Lib is an aftermarket add-on, I would like to use Trace for all messages, in all apps - and the let the configuration determine how the messages are processed.

I have something like that in place now. I wrote a System.Diagnostics.Trace tracelistener that sends messages from trace, over to enterprise library. But there are a lot of nuances that aren't handled very nicely (like categories and severities, for example). So I started looking again to see if I'm missing something.

Does Ent Lib support this natively? Is there some clever way it can connect into the trace pipeline automatically? If not, is there another TraceToEnterpriseLibraryTraceListener (a System.Diagnostics.Trace tracelistener) out there that people use?

I would like to continue this de-coupled approach, but wanted to make sure I'm not re-inventing the wheel here. Any thoughts?