-
Notifications
You must be signed in to change notification settings - Fork 298
Framework Diagnostics
Affan Dar edited this page Jan 30, 2015
·
3 revisions
All components of the framework log to the TraceSource “DurableTask”. Listeners can be attached to this trace source to get the framework traces.
The framework ships with a TraceListener that logs to the Console and Debug streams. The class name of the listener is DurableTask.Tracing.OrchestrationConsoleTraceListener.
Here is a snippet of an app.config file that shows how to load the console trace listener:
<system.diagnostics>
<trace autoflush="true"/>
<sources>
<source name="DurableTask"
switchName="traceSwitch"
switchType="System.Diagnostics.SourceSwitch" >
<listeners>
<clear/>
<add name="configConsoleListener"
type=" DurableTask.Tracing.OrchestrationConsoleTraceListener, DurableTask"
traceOutputOptions="DateTime" />
</listeners>
</source>
</sources>
<switches>
<add name="traceSwitch" value="Verbose" />
</switches>
</system.diagnostics>