# Delgan/loguru

Python logging made (stupidly) simple

Repository: https://github.com/Delgan/loguru
Canonical: https://ross.abutalabs.com/products/loguru
Homepage: https://loguru.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Topics: python, logging, logger, log
Last push: 2026-08-23T18:09:18+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3305, "days_push": 10, "days_rel": 635, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 24085, forks 808 (observed 2026-08-28T04:11:35.547011+00:00)

## What it is
Loguru is a Python library that provides simple, zero-boilerplate logging with a single import. It adds conveniences like file rotation, retention, compression, colored output, and better exception handling on top of standard logging.

## Use cases
- add logging to a python app without configuration
- rotate and compress log files automatically
- log exceptions with full tracebacks including threads
- replace the standard logging module with something simpler
- colorize console log output
- send logs to files, console, or custom sinks

## When to choose
- you want logging that works out of the box in Python
- you need log rotation, retention, or compression with minimal setup
- you find the standard logging module too verbose or confusing

## When to avoid
- you need deep integration with an existing stdlib logging configuration
- you require structured logging standards like OpenTelemetry out of the box
- your team mandates the standard library logging module

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend
- platform: python, cross-platform
- tags: logger, zero-config, log-rotation, colored-output

## Member repositories
- Delgan/loguru (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:35.547011+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:56:17.421556+00:00, confidence not recorded.
  - readme: https://github.com/Delgan/loguru (fetched 2026-08-28T04:11:35.547011+00:00, sha e1c617beaa7e)
  - homepage: https://loguru.readthedocs.io (fetched 2026-08-29T07:53:44.844481+00:00, sha f635ae551b13)
  - registry_pypi: https://pypi.org/pypi/loguru/json (fetched 2026-08-29T07:53:44.854514+00:00, sha 67d69f529972)
- Data as of 2026-08-30T08:39:29.467469+00:00.
