Skip to content

A lightweight, colorized Python logger with TRACE level support.

License

Notifications You must be signed in to change notification settings

marcodelpin/mlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A lightweight, colorized Python logger with TRACE level support.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages