SharePoint Workflow出了问题, 除了ULS log还可以看什么日志?

答案是Workflow Trace.

 

在应用程序的configuration文件中添加下面的代码, 这样Workflow相关的信息就会写在日志中了.

<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>

 

参考资料

=========================

WORKFLOW TRACE

http://blogs.msdn.com/b/madhuponduru/archive/2008/01/17/workflow-trace.aspx

How to enable logging information for several Windows Workflow Foundation namespaces

http://support.microsoft.com/kb/972914

Workflow Configuration Files

http://msdn.microsoft.com/en-us/library/ms732240.aspx

posted on 2012-08-21 15:01  中道学友  阅读(294)  评论(0编辑  收藏  举报

导航

技术追求准确,态度积极向上