A lightweight, colorized Python logger with TRACE level support.
- Custom TRACE logging level (lower than DEBUG)
- Colorized output for different log levels
- Rate-limiting for TRACE messages
- Simple and clean API
pip install tracecolor
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")
- TRACE: White
- DEBUG: Cyan
- INFO: Green
- WARNING: Yellow
- ERROR: Red
- CRITICAL: Bold Red
MIT