Creating a TraceSource object in ASP.NET 2.0

G

George Fresin

Hi,


in my ASP.NET application I use System.Diagnostic.Trace() statements to dump
onto my log. Now I must use a TraceSource object (by the way, I've noticed
that TraceSource does not support assertions, while the Trace class exposes
an Assert() method, so I suppose I'll have to use the Trace class in order
to use assertions; is it correct?) and I wonder where I have to create the
object (may be in Application? But in such a case I'd lock the object every
time I use it).

Thanks,

Paul
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top