alikins / color_debug

Python logging Formatter for colorizing logs per thread, process, logger name, or any record attribute

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

color_debug

Documentation Status Updates

Python logging Formatter for colorizing logs per thread, process, logger name, or any record attribute

Using this logging formatter to make log records that share a common attribute share a color automatically.

For example, a process with three threads could show the log entries for each thread in a different color. The same can be done per process, or per logger name. Any log record attribute can be used to choose the color used for the log entry.

The entire log record, the particular log field ('level' or 'process' for ex.), or a group of fields can be colorized based on an attribute value.

For example, the fields for 'thread', 'threadName', 'process', 'processName' could be colorized based on the thread id.

License

  • Free software: MIT license

Features

  • TODO

About

Python logging Formatter for colorizing logs per thread, process, logger name, or any record attribute

License:MIT License


Languages

Language:Python 94.8%Language:Makefile 5.2%