System.Diagnostics.Trace.WriteLine Problem in C#

  • Thread starter Thread starter dotNetDave
  • Start date Start date
D

dotNetDave

I'm wondering why this line:

System.Diagnostics.Trace.WriteLine("Some Text");

Does not work in C# in an ASP.NET application? While this one does:

System.Diagnostics.Trace.Listeners[0].Write("Some Text");

I don't want to worry about writing to each listener. Should the first line
work??

Thanks,
David

======================================
David McCarter [Microsoft MVP]
www.dotNetTips.com
David McCarter''''s .NET Coding Standards available at:
http://www.cafepress.com/geekmusicart.1654787045
 

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

Back
Top