Skip to main content

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 MLog

# Create a logger
logger = MLog(__name__)

# Log at different levels
logger.trace("Detailed tracing information")
logger.progress("Progress update information (rate-limited)")
logger.debug("Debugging information")
logger.info("General information")
logger.warning("Warning message")
logger.error("Error message")
logger.critical("Critical error")

Color Scheme

  • TRACE: Gray (dim white)
  • PROGRESS: Blue
  • DEBUG: Cyan
  • INFO: Green
  • WARNING: Yellow
  • ERROR: Red
  • CRITICAL: Bold Red

License

MIT

Project details


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.4.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tracecolor-0.4.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file tracecolor-0.4.0.tar.gz.

File metadata

  • Download URL: tracecolor-0.4.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for tracecolor-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c7710dd553492fa4e8ea2c97bcad424738e2c7db23f685d0cd9c873208d53675
MD5 c2664af292b50134865e5287842ac485
BLAKE2b-256 c73bb8900cae24e71dbeb18adf7feb675ced1782b74606cee9df00bbebc42be3

See more details on using hashes here.

File details

Details for the file tracecolor-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: tracecolor-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for tracecolor-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de8b434878a167051f252f05743a84e42cfd68e0f684e72232680a850449a30e
MD5 0d605f92c2d14a7b731022365e9c54bb
BLAKE2b-256 5b2b15da1338903fda8872e795f4ddf8e9da15924b7edbc07d0f5c7705eb4b47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page