skillfed

robocorp-log

Automatic trace logging for Python

robocorp-log v3.1.2 346.2K downloads/30d#7,357 on PyPI646
Permissive license Apache-2.0 Active released

What it is and what it does

robocorp-log is a structured logging library designed for Python automation where understanding failure causes is critical. It replaces verbose text-based logging with a compact format that generates an interactive HTML viewer (log.html), reducing disk space while improving readability. The library uses an AST-based pre-import hook to automatically capture execution traces without requiring explicit logging calls throughout your code, though it also provides manual logging APIs (critical, warn, info, debug, exception, html) when needed.

The package is primarily intended to be used through robocorp-tasks, which handles configuration via pyproject.toml. However, it exposes core APIs for suppressing sensitive data, hiding specific variables or methods, and sanitizing HTML content. It supports Python 3.10 through 3.14 and has no known security vulnerabilities. Note that the auto-import mechanism does not support coroutines (async/await, greenlet) and requires logging setup before importing modules you want to trace.

Use it for:

  • Automated RPA workflows where detailed execution logs help diagnose failures in unattended runs
  • Python test suites generating compact, browsable logs instead of large text files for CI/CD pipelines
  • Sensitive data handling in automation scripts by automatically redacting variable names or patterns you register
  • Interactive debugging of complex automation by viewing structured execution traces in a web browser
  • Compliance and audit logging for automation tasks where you need to prove what executed and why it failed

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides structured, automatic logging for Python automation with a focus on capturing detailed failure context and generating an interactive HTML log viewer.

Yes, if you are building Python automation or RPA workflows where failure diagnostics and log readability matter. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it safe to adopt. The main caveat is that it requires setup before importing modules you want to trace and does not support async/await or greenlet; verify those constraints fit your codebase before committing.

Install

robocorp-log on PyPI

pip

pip install robocorp-log

uv

uv add robocorp-log

poetry

poetry add robocorp-log

Installing robocorp-log

Before you install

Low friction installation with only two runtime dependencies (psutil and tomli). Actively maintained with recent releases; last commit 2026-07-24. Classified as Beta but in active development.

License in practice

Apache-2.0 permissive license allows free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install robocorp-log

import robocorp.log as log

log.info('Task started')
log.critical('Critical issue found')
log.exception(exception_instance)

Requires Python 3.10 or later. Auto-import logging must be configured before importing modules you want to trace; does not support async/await or greenlet.

Verify before relying

  • Whether the HTML log viewer output is suitable for large-scale automation runs or has performance/size limitations
  • Specific performance overhead of the AST-based auto-import hook during module initialization
  • Compatibility with popular debugging tools and whether debugger skip configuration is straightforward

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — psutil, tomli
Maintenance actively maintained — 154 days since the last release
Last repo commit
First released
Downloads 346,216/month — #7,357 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: robocorp_log-3.1.2-py3-none-any.whl

Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Logging

Tags

python structured loggingautomation logging frameworkautomatic trace loggingfailure diagnostics logginghtml log viewerpython execution tracingrobocorp logging
automation-loggingrpastructured-logging

More Python Modules packages