Principle:A9T9 RPA Execution Logging
| Knowledge Sources | |
|---|---|
| Domains | Browser_Automation, Logging |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
Mechanism for recording execution status, errors, and user-defined log messages during macro and script execution for debugging and audit.
Description
Execution Logging is the broader principle of capturing the execution trail of a macro — not just per-command results, but also user-defined log messages (`uiv.log`), click trails, image search trails, OCR trails, and timing information. This trail is essential for debugging failed macros and for the AI agent's iteration loop (the AI inspects logs to decide whether a macro succeeded).
The logging system supports:
- Status logs: macro started/completed/failed with timestamps
- Command logs: per-command execution status (info, warning, error)
- User logs: messages emitted by the script via `uiv.log(text, color)`
- Trails: click points, image search results, OCR match coordinates — collected during the run for post-run analysis
- File persistence: logs are appended to date-stamped files when filesystem access is available
Usage
Use this principle when any automation system needs an execution trail for debugging, audit, or AI-driven iteration.
Theoretical Basis
Logging is a time-ordered append-only event stream: