Things to look at when tracing does not output data
There are several issues that can prevent trace data being written. Here are a few of that you might encounter.
TraceSource names
If using TraceSource, the name provided to the TraceSource constructor is case sensitive. If the string doesn’t match your configuration exactly, a default TraceSource instance is created rather than the configured one you were expecting.
TextWriterTraceListener
If using TextWriterTraceListener (or XmlWriterTraceListener that derives from it), there are several more issues that can occur.