--- id: logzero version: "1.7.0" license: MIT license license_treatment: permissive maintenance: abandoned --- # logzero — Robust and effective logging for Python 2 and 3 License: permissive · Maintenance: abandoned · Downloads: 997.4K/mo ## What it is and what it does logzero is a thin wrapper around Python's standard logging module that provides sensible defaults for console and file logging with minimal boilerplate. It offers colored console output (with Windows support via colorama), rotating file handlers, JSON formatting, and a global default logger accessible as logzero.logger, plus a setup_logger() function for custom loggers. The package is intentionally lightweight—contained in a single file—and handles encoding edge cases robustly. The package targets developers who want logging without wrestling with the standard library's configuration complexity. It supports Python 2 and 3, and integrates with python-json-logger for structured logging. However, the repository is archived with the last commit on 2022-11-27, meaning no active maintenance, no bug fixes, and no compatibility updates for modern Python releases. Use it for: - Quick logging setup in scripts or small applications where standard logging config feels like overkill - Adding colored console output to CLI tools and utilities for better readability during development - Rotating file logging in long-running services to prevent log files from consuming unlimited disk space - Structured JSON logging for applications that parse logs with external tools or ship to log aggregation services - Cross-platform applications needing colored output on Windows without manually configuring colorama ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. logzero provides pre-configured Python logging to console and/or rotating files with colored output, JSON formatting support, and minimal setup overhead. Yes, if you need simple logging and accept the maintenance risk. The package is stable and works well for its narrow use case, but the abandoned status means no fixes for compatibility issues, security updates, or dependency conflicts. Suitable for personal projects, scripts, or applications you control fully; risky for production systems or long-term maintenance obligations. Consider actively maintained alternatives if you need ongoing support. ## Install pip install logzero uv add logzero poetry add logzero ## Installing logzero Before you install: Low install friction with a single runtime dependency (colorama). However, the repository is archived and the last release was in March 2021. No active maintenance; bug fixes or compatibility updates are unlikely. License in practice: MIT license is permissive; you can use, modify, and distribute logzero freely in commercial and private projects without restriction. Quickstart: pip install logzero from logzero import logger logger.info("hello") logger.error("error") import logzero logzero.logfile("/tmp/logzero-demo.log") logzero.loglevel(logzero.WARNING) Verify before relying: - Whether the package remains compatible with Python versions released after 3.9 - Whether colorama's Windows color support continues to work on modern Windows versions - Whether JSON logging output format is stable or has known issues with modern json-logger versions ## Package facts - License: MIT license (permissive) - Python support: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 997.4K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags simple python logging, colored console logging, rotating file logging, json logging python, easy logger setup, python logging wrapper, console and file logging, logging, cli-tools, abandoned [View on SkillFed](https://skillfed.io/packages/logzero) · [View on PyPI](https://pypi.org/project/logzero/)