Skip to content
CAI
Software that uses CAICheck a score

Delgan/loguru

64.2

Adequate · 18 September 2026

4.8k

lines of production code

Python

primary language

1

measurement over time

CAI band scale
CAI lens gauges

What this system is

Loguru is a Python logging library designed to simplify logging through a pre-instanced logger and a configuration system driven by environment variables. It provides structured logging capabilities, including asynchronous sinks, file rotation with compression, and enhanced exception formatting with syntax highlighting and diagnostic details. The system supports modern Python features and offers robust testing coverage for its core API, exception handling, and configuration options.

Features

Loguru 0.7.3 initial release

Loguru is now available as version 0.7.3, providing a pre-instanced logger that simplifies Python logging. The library introduces a new configuration system via environment variables (such as LOGURU\_FORMAT and LOGURU\_LEVEL) and supports structured logging, asynchronous sinks, and file rotation with compression. It also includes improved exception formatting with syntax highlighting and better support for modern Python features.

loguru · high confidence

Test coverage

Added source files for exception diagnosis tests; Added tests for backtrace formatting in various exception scenarios; Added tests for exception handling edge cases and traceback limits; Added tests for exception ownership and traceback attribution; Added tests for modern Python exception handling features; Initial test suite for Loguru.

Dependencies

Migration to pyproject.toml and dependency updates

The project build configuration has been migrated from setup.py to pyproject.toml, centralizing metadata and tool settings. This change includes updating development dependencies such as pytest (up to 9.1.1), mypy (up to 2.1.0), tox (up to 4.56.1), and pre-commit (up to 4.6.0), while also adding official support for Python 3.14 and configuring Ruff linting rules.

(dependencies) · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Baseline

  • First survey — no prior run to compare against. CAI 64.

Lenses

  • Code Health 85
  • Architecture 100
  • Maturity 56
  • Readiness 78
  • Security 59

Changes since last survey

  • 300 commits — 241 feature/other, 59 fixes

By area

  • (root) — 149 commits
  • .github/workflows — 35 commits
  • docs/resources — 26 commits
  • loguru/_logger.py — 14 commits
  • tests/exceptions — 13 commits
  • tests/conftest.py — 7 commits
  • loguru/init.pyi — 6 commits
  • loguru/_colorama.py — 5 commits
  • loguru/_better_exceptions.py — 4 commits
  • loguru/_datetime.py — 4 commits
  • loguru/_handler.py — 4 commits
  • loguru/_string_parsers.py — 3 commits
  • .github/dependabot.yml — 2 commits
  • docs/conf.py — 2 commits
  • loguru/_colorizer.py — 2 commits
  • loguru/_defaults.py — 2 commits
  • loguru/_recattrs.py — 2 commits
  • loguru/_simple_sinks.py — 2 commits
  • tests/test_datetime.py — 2 commits
  • tests/test_reinstall.py — 2 commits

Notable commits

  • fix: Actually fix Github CI for Python 3.5
  • fix: Add pre-commit hook to automatically fix BOMs
  • fix: Bump "ruff" and fix newly reported code smells
  • fix: Convert README from RST to MD (fix PyPI packaging)
  • fix: Document fix for "--log-cli-level" pytest compatibility (#1062)
  • fix: Enable "RET" linting rule of Ruff and fix newly reported errors (#1034)
  • fix: Fix "@logger.catch()" ignoring errors raised by "athrow()" (#1510)
  • fix: Fix "AttributeError" while using "ZoneInfo" (due to invalid "tzinfo.utcoffset()") (#1260)
  • fix: Fix "NO_COLOR" and "FORCE_COLOR" affecting non-standard streams
  • fix: Fix "ValueError" when using Loguru with Cython (missing stack frame) (#1240)
  • fix: Fix "dev" installation for CI with Python 3.8
  • fix: Fix "reinstall()" method missing from API overview in docs
  • fix: Fix "remove()" not thread-safe causing possible RuntimeError (#1183)
  • fix: Fix "variable possibly unbound" linting errors (#996)
  • fix: Fix @overload incompatibility reported by Mypy
  • fix: Fix CI build failing due to unsupported MacOS version
  • fix: Fix CI failures due to removed runners in Github Actions (#1354)
  • fix: Fix CI warnings due to "allow-failure" being empty string
  • fix: Fix Github CI for Python 3.13
  • fix: Fix Mypy unit tests due to deprecated "force_uppercase_builtins" option
  • …and 280 more

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

Delgan/loguru was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 18 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 48acf77ac2b3296acc67069511b99cc3ca3d0c41 — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-5d04157a340d.