devel/py-colorlog 6.9.0 DragonFly
Add colours to the output of Python logging module
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 16.3 KiB, 67.6 KiB installed
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
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-colorlog | 6.9.0 |
| FreeBSD | devel/py-colorlog | 6.12.0 |
| OpenBSD | devel/py-colorlog | 6.8.2p1 |
| NetBSD | devel/py-colorlog | 6.12.0 |
| MidnightBSD | devel/py-colorlog | 6.9.0_1 |
| HardenedBSD | devel/py-colorlog | 6.12.0 |
| GhostBSD | devel/py-colorlog | 6.12.0 |
Install
Binary package:
pkg install py311-colorlog
From DPorts:
cd /usr/dports/devel/py-colorlog && make install clean