skillfed

coloredlogs

Colored terminal output for Python's logging module

coloredlogs Permissive license MIT Abandoned v15.0.1 released

Install

coloredlogs on PyPI

pip

pip install coloredlogs

uv

uv add coloredlogs

poetry

poetry add coloredlogs

Package facts

License MIT (permissive)
Python support supports the current Python release (>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*)
Install friction low — pure-Python wheel
Runtime dependencies 1 — humanfriendly
Maintenance abandoned — 1,889 days since the last release
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: coloredlogs-15.0.1-py2.py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: CommunicationsTopic :: Scientific/Engineering :: Human Machine InterfacesTopic :: Software DevelopmentTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: User InterfacesTopic :: SystemTopic :: System :: Console FontsTopic :: System :: LoggingTopic :: System :: ShellsTopic :: System :: System ShellsTopic :: System :: Systems AdministrationTopic :: TerminalsTopic :: Utilities

About coloredlogs

from the package's own PyPI description — quoted content, verbatim

coloredlogs: Colored terminal output for Python's logging module

.. image:: https://travis-ci.org/xolox/python-coloredlogs.svg?branch=master :target: https://travis-ci.org/xolox/python-coloredlogs

.. image:: https://coveralls.io/repos/github/xolox/python-coloredlogs/badge.svg?branch=master :target: https://coveralls.io/github/xolox/python-coloredlogs?branch=master

The coloredlogs package enables colored terminal output for Python's logging_ module. The ColoredFormatter_ class inherits from logging.Formatter and uses ANSI escape sequences to render your logging messages in color. It uses only standard colors so it should work on any UNIX terminal. It's currently tested on Python 2.7, 3.5+ and PyPy (2 and 3). On Windows coloredlogs automatically tries to enable native ANSI support (on up-to-date Windows 10 installations) and falls back on using colorama_ (if installed). Here is a screen shot of the demo that is printed when the command coloredlogs --demo is executed:

.. image:: https://coloredlogs.readthedocs.io/en/latest/_images/defaults.png

Note that the screenshot above includes custom...

Read as markdown · JSON record · Homepage

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

Adds colored output to Python's standard logging module using ANSI escape sequences, with automatic fallback support for Windows terminals.

Installation is straightforward with low friction—a pure Python wheel with a single runtime dependency (humanfriendly). However, the package is abandoned as of 1889 days since its last release, meaning no active maintenance or security updates.

MIT license (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.

Usage

pip install coloredlogs

import coloredlogs, logging
logger = logging.getLogger(__name__)
coloredlogs.install(level='DEBUG', logger=logger)
logger.info('colored output')

Requires Python 2.7 or 3.5+; on Windows, native ANSI support requires Windows 10 or the optional colorama package.

Verdict: A stable, well-established logging formatter with no known vulnerabilities and permissive licensing, but abandoned maintenance since June 2021 means no fixes for future Python versions or emerging issues. Suitable for projects that can tolerate a frozen dependency; risky for long-term production use.

Needs verification

  • Whether the package remains functional with Python 3.9+ given its abandoned status and last release date.
  • Real-world compatibility with recent Windows 10/11 ANSI terminal support without colorama installed.
  • Whether humanfriendly dependency itself is actively maintained and compatible with current Python versions.
colored logging outputpython logging colorsansi terminal loggingcolored console logsterminal log formattingpython log colorizationcolored stderr output

Similar packages