Listner control destination the output of Trace. Here is how.
<trace autoflush="true" indentsize="4">
<listeners>
<remove name="Default" />
<add type="System.Diagnostics.ConsoleTraceListener" name="Console" />
</listeners>
</trace>
We can also use share sharedListeners, like below.
<trace autoflush="true" indentsize="4">
<listeners>
<remove name="Default" />
<add name="Console" />
</listeners>
</trace>
<sharedListeners>
<add type="System.Diagnostics.ConsoleTraceListener" name="Console" />
</sharedListeners>
No comments:
Post a Comment