Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:A9T9 RPA Execution Logging

From Leeroopedia
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:

Log={(ti,typei,texti,metai)}i=1n

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment