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 details)
Built Distribution
File details
Details for the file gunicorn_color-0.0.1.tar.gz
.
File metadata
- Download URL: gunicorn_color-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e43c6e050bb8faffe5738272ea9835ef484f9f59ede472a177d9b54a057a33 |
|
MD5 | bed91ba73ca348eba81f026d6b62bec1 |
|
BLAKE2b-256 | d8d71b10e29891186db0c378142d0ee83e1d13610444c594010b42cbd73ae784 |
File details
Details for the file gunicorn_color-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: gunicorn_color-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a53df30b9e64a41ffebe8a1ce35cd954b4b87074490031b3153ea0ebd3563fe |
|
MD5 | 618221c7c98bc533424ce6353d49dc9d |
|
BLAKE2b-256 | 09ec8f11b757a710f03cd939ae84169a7701c4810aed2de2640493fbb657a021 |