Tracking and Tracing RuleSet Information
When a RuleSet executes, tracking events are sent to tracking services that are configured on the hosts that have registered for these events by adding a UserTrackPoint to their tracking profile. A RuleActionTrackingEvent is sent, which provides the name of the rule that was evaluated, as well as the condition evaluation result (true/false). For more information, see the RuleActionTrackingEvent Sample.
The evaluation results of rule conditions on activities can be implicitly tracked by tracking activity execution.
Enabling Tracing
Additional RuleSet evaluation information can be sent to a log file by adding the following to an application configuration file.
<configuration>
<system.diagnostics>
<switches>
<add name="System.Workflow.Activities.Rules" value="Information"/>
</switches>
</system.diagnostics>
</configuration>
The following information is sent to the log file:
RuleSet execution (Information)
Condition evaluation result (Information)
Condition dependency information (Verbose)
Action side-effect information (Verbose)
Chaining relationship (Verbose)
Condition evaluation (Verbose)
Action execution (Verbose)
All tracing messages are defined at the specified level, so you should specify a level of "Information" or "Verbose" in your configuration file as appropriate to the types of messages you want to see.