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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

C# Standard and UserControls 4
Embedded quotes in XML string 1
Profiler recommendations needed 2
Questions on strong names 3
DB connection dialog? 3
DataSet Question 2
Code reuse in C# 6
Context menu issue 1

Back
Top