Trace.WriteXXX vs Listener.WriteXXX

  • Thread starter Thread starter Frank Oquendo
  • Start date Start date
F

Frank Oquendo

What issues should I consider when deciding to use one or the other?

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 
Frank,
I'm not see a Listener.WriteXXX per se, do you mean TraceListener.WriteXXX?

I would "always" use Trace.WriteXXX, as my understanding is
TraceListener.WriteXXX is an implementation detail of Trace.WriteXXX &
Debug.WriteXXX.

The only time I would use TraceListener.WriteXXX is when I was implementing
a new Listener class. Or implementing my own Trace or Debug like class.

Hope this helps
Jay
 
Back
Top