A lightweight, colorized Python logger with TRACE level support.
Project description
TraceColor
A lightweight, colorized Python logger with TRACE level support.
Features
- Custom TRACE logging level (lower than DEBUG)
- Colorized output for different log levels
- Rate-limiting for TRACE messages
- Simple and clean API
Installation
pip install tracecolor
Usage
from tracecolor import MLog
# Create a logger
logger = MLog(__name__)
# Log at different levels
logger.trace("Detailed tracing information")
logger.debug("Debugging information")
logger.info("General information")
logger.warning("Warning message")
logger.error("Error message")
logger.critical("Critical error")
Color Scheme
- TRACE: White
- DEBUG: Cyan
- 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.2.0.tar.gz
(6.2 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.2.0.tar.gz.
File metadata
- Download URL: tracecolor-0.2.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2ebe366466f2ec20ce234f476b23749c7c8a3d42a979a8d300cb0d88a9b1d30
|
|
| MD5 |
8d8d0bd8d385a209d3a7e91a34cd7a8c
|
|
| BLAKE2b-256 |
e091e6f91dc2a2859963f012491c139c00d76ccadb24d195c7b0dff6ab01c4b9
|
File details
Details for the file tracecolor-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tracecolor-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
024b04d8244f792fe0c3e6cc8c563ef740f9277cf0918143e2c7eb9c4da4e692
|
|
| MD5 |
0f22f6ba90e8de719c3177cd960a091b
|
|
| BLAKE2b-256 |
948d0bc3bb7aa1847cc5e2a7dfe72bf9fd473e1ec92982e1ba5092f9d72ac2e8
|