BSD Ports

devel/py-colorlog 6.9.0_1 MidnightBSD

Add colours to the output of Python logging module

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, python

Description

colorlog.ColoredFormatter is a formatter for use with Python's logging module that outputs records using terminal colors.

The ColoredFormatter class takes several arguments:

  • format: The format string used to output the message (required).
  • datefmt: An optional date format passed to the base class. See logging.Formatter.
  • reset: Implicitly adds a color reset code to the message output, unless the output already ends with one. Defaults to True.
  • log_colors: A mapping of record level names to color names. The defaults can be found in colorlog.default_log_colors.
  • secondary_log_colors: A mapping of names to log_colors style mappings, defining additional colors that can be used in format strings.
  • style: Available on Python 3.2 and above. See logging.Formatter.

In the other systems

The newest version among them is 6.12.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/py-colorlog6.9.0_1 behind since 2026-07-08no data-[email protected]-
FreeBSDdevel/py-colorlog6.12.0 newestnone known-[email protected]2026-08-31
OpenBSDdevel/py-colorlog6.8.2p1 behind since 2026-07-08no data-Laurence Tratt <[email protected]>-
NetBSDdevel/py-colorlog6.12.0 newestnone known-[email protected]2026-09-02
DragonFlydevel/py-colorlog6.9.0 behind since 2026-07-08none known-[email protected]-
HardenedBSDdevel/py-colorlog6.12.0 newestno data-[email protected]-
GhostBSDdevel/py-colorlog6.12.0 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}colorlog

From mports:

cd /usr/mports/devel/py-colorlog && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}colorlog>0:devel/py-colorlog

Dependency graph

Ports that need it on the left, what it needs to run on the right (to build, as it needs nothing to run); at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Build 2

Build dependencies 2

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
colorlog-6.9.0.tar.gz16624bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2
Master sites 1
  • PYPI