loguru
Python logging made (stupidly) simple
Install
loguru on PyPI
pip
pip install loguruuv
uv add logurupoetry
poetry add loguruPackage facts
| License | not declared (permissive) |
| Python support | supports the current Python release (<4.0,>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — colorama, aiocontextvars, win32-setctime |
| Maintenance | actively maintained — 615 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: loguru-0.7.3-py3-none-any.whl
Keywords: loguru, logging, logger, log
About loguru
from the package's own PyPI description — quoted content, verbatim
<p align="center"> <a href="#readme"> <img alt="Loguru logo" src="https://raw.githubusercontent.com/Delgan/loguru/master/docs/_static/img/logo.png"> <!-- Logo credits: Sambeet from Pixaday --> <!-- Logo fonts: Comfortaa + Raleway --> </a> </p> <p align="center"> <a href="https://pypi.python.org/pypi/loguru"><img alt="Pypi version" src="https://img.shields.io/pypi/v/loguru.svg"></a> <a href="https://pypi.python.org/pypi/loguru"><img alt="Python versions" src="https://img.shields.io/badge/python-3.5%2B%20%7C%20PyPy-blue.svg"></a> <a href="https://loguru.readthedocs.io/en/stable/index.html"><img alt="Documentation" src="https://img.shields.io/readthedocs/loguru.svg"></a> <a href="https://github.com/Delgan/loguru/actions/workflows/tests.yml?query=branch:master"><img alt="Build status" src="https://img.shields.io/github/actions/workflow/status/Delgan/loguru/tests.yml?branch=master"></a> <a href="https://codecov.io/gh/delgan/loguru/branch/master"><img alt="Coverage" src="https://img.shields.io/codecov/c/github/delgan/loguru/master.svg"></a> <a href="https://app.codacy.com/gh/Delgan/loguru/dashboard"><img alt="Code quality"...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Loguru provides a simplified, zero-boilerplate logging interface that replaces Python's standard logging with a single pre-configured logger supporting file rotation, colored output, structured logging, and thread-safe exception handling.
Low friction: pure Python wheel with only three lightweight runtime dependencies. Active maintenance with recent release and strong community engagement.
MIT license (permissive) allows unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations.
Usage
pip install loguru
from loguru import logger
logger.info("Hello, world!")
logger.add("file_{time}.log", rotation="500 MB")
Verdict: Loguru is a mature, well-maintained logging replacement with zero security vulnerabilities, permissive licensing, and minimal dependencies. Its simplicity and feature-richness (rotation, compression, structured logging, exception catching) make it an excellent choice for both scripts and production applications across Python 3.5+.
Needs verification
- Whether colorama, aiocontextvars, and win32-setctime have their own known vulnerabilities or maintenance concerns
- Performance characteristics compared to standard library logging under high-volume scenarios
- Specific GitHub stars count and exact days since last release
Similar packages
permissive · top 1,000 on PyPI
python-json-loggerpermissive · top 1,000 on PyPI
pybreakerpermissive · top 1,000 on PyPI
rich-argparsepermissive · top 1,000 on PyPI
decoratorpermissive · top 1,000 on PyPI
click-replpermissive · top 1,000 on PyPI
cloudpicklepermissive · top 1,000 on PyPI
cyclerpermissive · top 1,000 on PyPI
cataloguepermissive · top 1,000 on PyPI
orjsoncopyleft · top 1,000 on PyPI