A lightweight, colorized Python logger with TRACE and PROGRESS level support.
Project description
tracecolor
A lightweight, colorized Python logger with TRACE and PROGRESS level support.
Features
- Custom TRACE logging level (lower than DEBUG)
- Custom PROGRESS logging level (between DEBUG and INFO)
- Colorized output for different log levels
- Rate-limiting for PROGRESS messages (once per second)
- Simple and clean API
Installation
pip install tracecolor
Usage
from tracecolor import tracecolor
# Create a logger
logger = tracecolor(__name__)
# Log at different levels
logger.trace("Detailed tracing information")
logger.debug("Debugging information")
logger.progress("Progress update information (rate-limited)")
logger.info("General information")
logger.warning("Warning message")
logger.error("Error message")
logger.critical("Critical error")
Color Scheme
- TRACE: Gray (bold black)
- DEBUG: Cyan
- PROGRESS: Blue
- INFO: Green
- WARNING: Yellow
- ERROR: Red
- CRITICAL: Bold Red
License
MIT
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
tracecolor-0.5.0.tar.gz
(7.6 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 tracecolor-0.5.0.tar.gz.
File metadata
- Download URL: tracecolor-0.5.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05f60582e2eb1d0a1cecd62e35f2109817a678255e3b76fd2c51799a66b4b05b
|
|
| MD5 |
e56368cefd0a5890970b3a041e312c33
|
|
| BLAKE2b-256 |
205110f91902b3729e57f0bfbc46c8d5f8b469512bf0cd4a1be7a74cab129144
|
File details
Details for the file tracecolor-0.5.0-py3-none-any.whl.
File metadata
- Download URL: tracecolor-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
422c83b47699eb30198f30aad86544ccafd3f0ad8aad9f4f57dca1c118c568a9
|
|
| MD5 |
6073853f1871d464fb4c3909dc5c2731
|
|
| BLAKE2b-256 |
7145755b062964cc90b70b4ececb1a1a9141d1850e92e893e20e233890579fb4
|