Folks, many parts of the FCL (like Remoting and WCF) write trace
information out to a TraceSource class, presumably like this (does this
look right?):
private TraceSource ts = new TraceSource("My.Library", SourceLevels.All);
:
ts.TraceInformation("Hello world!");
The only way I can find at the moment to listen to what a library like that
is tracing is to put something like this in the App's config file:
<system.diagnostics>
<sources>
<source name="My.Library">
<listeners>
<add name="consListener"
type="System.Diagnostics.ConsoleTraceListener"/>
</listeners>
</source>
</sources>
</system.diagnostics>
Does anyone know how bypass the config section to do this in code? I've
been fiddling and searching the web but every example or tutorial I find
uses a config file.
*Greg K*