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.8.tar.gz
(2.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.8.tar.gz.
File metadata
- Download URL: quick_colorlog-0.0.8.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9b43caedf0ea18c28289546cb3a71f2eb97b8b8b6b0c93cc286f5bf4401dc79
|
|
| MD5 |
2c7953d0746f6654f1410578a1156636
|
|
| BLAKE2b-256 |
38dca9b01a54f4b82ee846e1f67c971b66f03dae1a814a5a7ed5e53c5e94f461
|
File details
Details for the file quick_colorlog-0.0.8-py3-none-any.whl.
File metadata
- Download URL: quick_colorlog-0.0.8-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bd42dec56ebf52ef792d1d0b3c274dcb50887bdb2076bbfe903c259cb2e03aa
|
|
| MD5 |
5b4eec71ad39fda287322a92e094e9d5
|
|
| BLAKE2b-256 |
7c00dbd40ee90389553058ef5701a0141e9af80e8f8a82d4da443c2b1eaf1f2e
|