Dead simple access logger for Gunicorn with termcolor support.
Project description
Gunicorn color logger
Dead simple access logger for Gunicorn with termcolor support.
Usage
Simply add gunicorn_color to your requirements file or install it manually:
pip install gunicorn_color
Now you can use gunicorn_color.Logger as your gunicorn’s logger class e.g.:
gunicorn --access-logfile=- --logger-class=gunicorn_color.Logger wsgi::app [::]:8000
In order to disable colors set ANSI_COLORS_DISABLED environment variable:
ANSI_COLORS_DISABLED= gunicorn --access-logfile=- --logger-class=gunicorn_color.Logger wsgi::app [::]:8000
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gunicorn_color-0.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for gunicorn_color-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a53df30b9e64a41ffebe8a1ce35cd954b4b87074490031b3153ea0ebd3563fe |
|
MD5 | 618221c7c98bc533424ce6353d49dc9d |
|
BLAKE2b-256 | 09ec8f11b757a710f03cd939ae84169a7701c4810aed2de2640493fbb657a021 |