-
Notifications
You must be signed in to change notification settings - Fork 295
Framework Diagnostics
Chris Gillum edited this page Jan 10, 2023
·
3 revisions
IMPORTANT: This information is outdated and only applies to the deprecated v1 version of the Durable Task Framework. For all recent versions, see the information here.
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>