loguru
Python logging made (stupidly) simple
Decision gist · record as of 2026-08-14
Yes. Loguru is actively maintained, has no known vulnerabilities, low install friction, solves a genuine pain point—Python's standard logging is verbose, error-prone for simple use cases. The permissive MIT license removes any legal barrier. Install it if you want logging to feel natural but with the power, structure that production code needs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with only three runtime dependencies (colorama, aiocontextvars, win32-setctime).
- Actively maintained with last commit on 2026-07-01 and stable production status.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive); no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2024-12-06 (616 days) · last repo commit 2026-07-01 · 24,070 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 81,864,712 downloads/mo, #411 on PyPI
Alternatives
Verify before relying
from loguru import logger
logger.debug("That's it, beautiful and simple logging!")
logger.add("file_{time}.log", rotation="500 MB")- Whether the '10x faster than built-in logging' claim in the description is independently verified or benchmark-specific.
- Performance characteristics when using enqueue=True for multiprocess-safe logging at scale.
What it is and what it does
Loguru is a logging library designed to eliminate the boilerplate of Python's standard logging module. Instead of configuring handlers, formatters, filters separately, you import a single pre-configured logger object to start logging immediately—no setup required. The logger outputs to stderr by default but can be extended to files, coroutines, or custom sinks using a single add() function.
The package handles common logging tasks that are tedious in the standard library: automatic file rotation based on size or time, log retention, compression, colored terminal output, thread-safe message queuing, multiprocess-safe message queuing, detailed exception tracing with variable values. It supports modern string formatting with braces, lazy evaluation of expensive logging expressions, can catch exceptions in threads or the main thread via a decorator or context manager.
Use it for
- Replace print() debugging with proper logging from the start of a project without configuration overhead.
- Set up rotating file logs with automatic cleanup, compression for long-running applications.
- Catch, log exceptions in background threads with full stack traces, variable inspection.
- Add colored, formatted logging to CLI tools, scripts with a single import, one-line add() call.
- Integrate structured logging into existing applications while maintaining compatibility with standard logging handlers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Loguru is actively maintained, has no known vulnerabilities, low install friction, solves a genuine pain point—Python's standard logging is verbose, error-prone for simple use cases. The permissive MIT license removes any legal barrier. Install it if you want logging to feel natural but with the power, structure that production code needs.
Install
loguru on PyPI
Before you install
Low friction: pure Python wheel with only three runtime dependencies (colorama, aiocontextvars, win32-setctime). Actively maintained with last commit on 2026-07-01 and stable production status.
License in practice
MIT license (permissive); no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
from loguru import logger
logger.debug("That's it, beautiful and simple logging!")
logger.add("file_{time}.log", rotation="500 MB")
Verify before relying
- Whether the '10x faster than built-in logging' claim in the description is independently verified or benchmark-specific.
- Performance characteristics when using enqueue=True for multiprocess-safe logging at scale.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release <4.0,>=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagescoloramaaiocontextvarswin32-setctime |
| Maintenance | Actively maintained 616 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,864,712 / month, #411 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: System :: Logging |
Evidence: loguru-0.7.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “simple logger no config”
- loguruLoguru provides a pre-configured logger that replaces Python's…
- logzerologzero provides pre-configured Python logging to console and/or…
- python-simple-loggerProvides a simple logger for console and file output with built-in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Logging packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Formats Python logging output as JSON, making logs machine-readable for parsing and ingestion into log aggregation tools.
Install it if you need JSON-formatted logs for aggregation or centralized monitoring.
structlog is a structured logging library that lets you emit logs as dictionaries with flexible output formats (JSON, logfmt, console) and integrates with Python's standard logging or runs standalone.
Install it if your application needs JSON or logfmt output, or if you want to add rich context to logs without string formatting.
Adds colored output to Python's standard logging module using ANSI escape sequences, with automatic fallback support for Windows terminals.
However, it is abandoned and receives no maintenance, so it will not adapt to future Python changes or platform updates.
wandb is a machine learning experiment tracking and visualization platform that logs metrics, hyperparameters, datasets, and models to a centralized dashboard for monitoring and comparing training runs.
Install it if you need centralized experiment tracking, comparison, and visualization for machine learning projects; skip it if you prefer local-only logging or have…
progressbar2 renders text-based progress bars in the terminal, handling custom widgets, concurrent bars, unknown-length progress, and clean output around logs and prints.
See also Logbook · loki-logger-handler · logistro · pytest-loguru · concurrent-log-handler · daiquiri · datadog-logger · glog · logger · pygtail