tracing
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I would like to trace my application and put all messages in a text file. I use Trace.TraceError(""); Trace.TraceInformation(""); Trace.TraceWarning(""); methods and when TraceSwitch level is set to for instance Error all messages are put in a file? Why? I thought when I set TraceSwitch (ts) to Error only TraceError messages would be sent. I would like to change only trace level and certain messages should autmatically be put in a file. Should I use Trace.WriteIf(ts.TraceError == true,"..."); What for if TraceError, TraceWarning etc.??? Ela