colorlogging
Makes logging colorful!
Example of colorlogging output
Installation
Simply run
pip install colorlogging
Usage
To configure logging, call configure_logging like so:
import colorlogging
import logging
logger = logging.getLogger(__name__)
def main() -> None:
colorlogging.configure()
logger.info("Hello, world!")
This tool also provides some other helpful display functions:
import colorlogging
colorlogging.show_info("This is a status message", important=True)
colorlogging.show_warning("This is a warning message")
colorlogging.show_error("This is an error message")
This shows the following output:
Metadata
Release files for colorlogging 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| colorlogging-0.0.2.tar.gz | 35.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colorlogging-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.0 kB
Release files / colorlogging-0.0.2.tar.gz
| Download URL | colorlogging-0.0.2.tar.gz |
|---|---|
| Size | 35.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1d47ca553df59706474296187679655781a80c00d53202617625ada3c3cb890
|
|
BLAKE2b-256 checksum How to use checksums |
a149b11ed1d66a453a9d948a23e8e91a36c3595007e9a2cf3b259704052f23c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / colorlogging-0.0.2-py3-none-any.whl
| Download URL | colorlogging-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae9a3ce3ceca60372569f6acbad7cfd097f812d40596b655c26a74283f9f9faf
|
|
BLAKE2b-256 checksum How to use checksums |
8788ea3a8378de7a78703d5f10bd04a4f83b193e5026a60d29bacec6c899e188
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for colorlogging 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.