Skip to main content

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


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.3.0.tar.gz (6.7 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.3.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tracecolor-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8e205cb842752eca8dc3f55ac700042ea3482037a3c5b971b6ade372ac2b41fe
MD5 0795cf8ffdc2c083f64a541f23063acb
BLAKE2b-256 967fac1c4652df816dc8d3cbfc06cfa5fd071374e288a3aa1457b38d91da8988

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tracecolor-0.3.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.12.4

File hashes

Hashes for tracecolor-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97c4ccde1a4ba3b4bd55b72ce93c2f65c44833504c769c5d9ecec50d0e85bc4b
MD5 42b40a878b0bc58446dfb0226773872f
BLAKE2b-256 ea9a31296998089321f41939e9362ed62febf4b3caa96bd315609cd878bad720

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