The engine provides three related but distinct ways to understand what happened during a run.
The working context keeps an audit trail of invoked rules, their effects, and any exceptions raised.
The logger system writes diagnostic messages at configurable log levels and can forward them to your own logger implementation.
The stopwatch utility measures execution time and optional Node.js resource metrics for profiling specific code paths.
Use the audit trail when you need to inspect business outcomes. Use the logger when you need operational diagnostics or integration with your application's logging stack. Use the stopwatch when you want timing and resource snapshots around a block of work.
Choose the Right Tool
Audit Trail shows which rules ran, what effect they had, which exceptions were raised, and what output was produced.