can i use trace and traceListener for multi thread application (and multi-tracing)

D

Daylor

hi.
i have application with 5 threads.
can i use the trace and tracelistener, so if i trace in thread1 , it will
write to
file1, and if i trace to thread2 if will write to file2.

hope im clear, have a nice day.
 
D

David Gutierrez[MSFT]

Currently there's no way to do this using Trace. The best I can suggest is
to trace all of the output to one file, but include a tag which identifies
which thread each trace is on. Then sort it out after your scenario is
done.
David
 

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

Top