Tracing is an invaluable aid when developing or troubleshooting rulebases. Unfortunately in an environment where you're sharing the development load, or you have many background events arriving, searching through the trace log can be a lengthy process and often quite frustrating. The problem with tracing is that you have to restart the rulebase if you want to change the tracing mode, and the tracing happens for every rule.
This weeks tip describes how you can generate your own trace messages that will appear in the trace log.
It is possible to generate you own trace or debug information within your rules. To do this first you need to create your own tracing template, something like this should suffice:-
rule: initialise:
|
Now within our rule actions we can simply add the statement like the following:
action:
|
The second part (next week) of this three part tip I will show you how you can turn tracing on and off dynamically without having to restart the Event Server.