As far as I can see, there are two ways to create trace messages in .NET.
The static methods of System.Diagnostics.Trace:
Trace.WriteLine("Something happened");
The instance methods of System.Diagnostics.TraceSource:
var ts = new TraceSource("TraceTest"); ts.TraceInformation("Something happened");
In my app.config file, I can either add a trace listener for everything:
<system.diagnostics>
<trace>
<listeners>
...
</listeners>
</trace>
</system.diagnostics>
or for one particular trace source:
<system.diagnostics>
<sources>
<source name="...">
<listeners>
...
</listeners>
</source>
</sources>
</system.diagnostics>
My question
If I use the first method (static methods of System.Diagnostics.Trace), which trace source name is used?
I've checked the MSDN page of System.Diagnostics.Trace, but did not find the answer there.