Colorized logging with Python.
Project description
quick-colorlog
Inspired by coloredlogs but without the subprocesses.
Quickstart
from quick_colorlog import init_colors
init_colors()
Defaults
By default, the log level is set to logging.INFO and the output stream is
attached to sys.stderr. To change these, pass arguments to init_colors()
from quick_colorlog import init_colors
init_colors(level=logging.DEBUG, output=sys.stdout)
Example
import logging
from quick_colorlog import init_colors
init_colors()
logger = logging.getLogger('testing')
logger.debug("test")
logger.info("test")
logger.warning("test")
logger.error("test")
logger.critical("test")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quick_colorlog-0.0.10.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quick_colorlog-0.0.10.tar.gz.
File metadata
- Download URL: quick_colorlog-0.0.10.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a0640f1aad5d8968d7851d06436c67bdcdd5a7a0ca6d456bb59ff183b640028
|
|
| MD5 |
5aa3e6efd737699ef8a511cae0057dd5
|
|
| BLAKE2b-256 |
1d29395c36ebe19ee505d78dad82ddc3fed5472435e70f4fb2bc8bff6aeddd92
|
File details
Details for the file quick_colorlog-0.0.10-py3-none-any.whl.
File metadata
- Download URL: quick_colorlog-0.0.10-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f61330324e4f9a9c59fae805c32cd572f9c7eeabf68038422b6a2f3fcb058f26
|
|
| MD5 |
e475e88c3796e3af19abe4760105fa3b
|
|
| BLAKE2b-256 |
d20696819dc851be5d33c4800d19117acd5892d423f3b3667ac01d60b04b344c
|