TraceListener that goes to Console only if debugging?

Topics: Logging Application Block
Sep 21, 2010 at 2:02 PM

Is there a listener that will output Event Entries targeted to Visual Studio Output window only during development?




Sep 21, 2010 at 3:13 PM

Yes there is, you can use the System Diagnostics Trace Listener and configure its Type to use the System.Diagnostics.DefaultTraceListener. With this, you can log into the VS Output window. HTH

Gino Terrado
Global Technology and Solutions
Avanade, Inc.

Sep 24, 2010 at 5:42 PM

Thanks Gino, thats what I was looking for.