MADHU@MICROSOFT BLOG

All About Distributed apps

WORKFLOW TRACE

WORKFLOW TRACE

  • Comments 2

Add following info to your application configuration file to trace WF related info

<configuration>
<system.diagnostics>
<switches>
        <add name="System.Workflow LogToTraceListeners" value="1" />
        <add name="System.Workflow.Runtime" value="All" />
        <add name="System.Workflow.Runtime.Hosting" value="All" />
        <add name="System.Workflow.Runtime.Tracking" value="All" />
        <add name="System.Workflow.Activities" value="All" />
        <add name="System.Workflow.Activities.Rules" value="All" />
    </switches>

  <trace autoflush="true" indentsize="4">
    <listeners>
      <add name="customListener"
     type="System.Diagnostics.TextWriterTraceListener"
     initializeData="WFTrace.log" />
    </listeners>
  </trace>
</system.diagnostics>
</configuration>

Note:

We can control trace by using trace switches, so if you don't want trace all the info, you can trace only errors by using following trace switches

 

http://msdn.microsoft.com/en-us/library/system.diagnostics.sourcelevels.aspx


Reference:

http://msdn2.microsoft.com/en-us/library/aa663362.aspx

 

 

 

Leave a Comment
  • Please add 7 and 2 and type the answer here:
  • Post
Page 1 of 1 (2 items)