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.1.0.tar.gz (6.4 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.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tracecolor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c1c844c2a4d546fcd370b3c63c364a2cc46b744a99c79d7e700aa771d3d18dc
MD5 16b6ee33c4227c5c9786ad4a221ec309
BLAKE2b-256 2289d1b37c485f368b8628a364284c43308868e217cb31782fb02a6ba584697e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tracecolor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cf277770194b12003532ffb8551daefe1c2d7b3f0c06600df5afcd118394521
MD5 82c271d1050a04e7c07cdce1535ca6f7
BLAKE2b-256 e6904834bc4405dead75e7b295187bcee072114a0f6ff6566e5f83b4f648acdb

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