Skip to main content

Simple log formatters for colored output

Project description

Logging formatters for colorized outputs. A simple domain specific language for log messages which can be used to colorize all or part of a particular log message. For example:

LOG.debug(‘Found file at #g<%s>’, path)

would colorize the contents of the ‘path’ variable green when output to a command line terminal.

A formatter which strips color sequences from the output is also included for situations like logging to files where it would not make sense to have ANSI color sequences embedded in the output.

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

log_color-1.0.7.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

log_color-1.0.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file log_color-1.0.7.tar.gz.

File metadata

  • Download URL: log_color-1.0.7.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for log_color-1.0.7.tar.gz
Algorithm Hash digest
SHA256 d666ae9d4f3781883f7776b53368d86a1b812f3e57538577368175919e656563
MD5 35019117758d2191202e0fb4434233c7
BLAKE2b-256 975c1e6f0217d304ae4c916801722d1f003fd30b616e773719022249514f2a0c

See more details on using hashes here.

File details

Details for the file log_color-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: log_color-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for log_color-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 794a65ad81805356442e888a03ceb77f5d74a5b84796638d0f468953580125a3
MD5 0cb56462195505836f60b36c47b29612
BLAKE2b-256 755a88f28cb6c8878022181656e37ce6401f1a1f391612e8cee8b187c7e3e1c1

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