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.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for gunicorn_color-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc319b6313370f694d59f18fafcb3392a25b4101720210bda12b28bbf86bd42 |
|
MD5 | 6662bba8ae183df243398896e6fd5d44 |
|
BLAKE2b-256 | 982d6df56f40f9b3fcf69040a5aaf3de2416a4b8a67071c5a685e8ec56d093c9 |