Welcome to MSDN Blogs Sign in | Join | Help

MADHU@MICROSOFT BLOG

All About Distributed apps

Syndication

News

Madhu Ponduru works at Microsoft. Everything here, though, is his personal opinion and is not read or approved by Microsoft before it is posted. No warranties or other guarantees will be offered as to the quality of the opinions or anything else offered here.
WORKFLOW TRACE

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

 

 

 

Published Thursday, January 17, 2008 11:29 AM by madhu_ponduru@hotmail.com

Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# MSDN Blog Postings &raquo; WORKFLOW TRACE @ Thursday, January 17, 2008 4:24 PM

PingBack from http://msdnrss.thecoderblogs.com/2008/01/17/workflow-trace-3/

MSDN Blog Postings » WORKFLOW TRACE

# How to capture SqlWorkflowPersistenceService errors. @ Friday, July 11, 2008 5:00 PM

If you are failed to persist the workflow or read workflow information from the Database ,workflow runtime

MADHU@MICROSOFT BLOG

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement  
Page view tracker