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 details)
Built Distribution
File details
Details for the file gunicorn_color-0.0.2.tar.gz
.
File metadata
- Download URL: gunicorn_color-0.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f365d22734b519e0afe980bffe075ffd953bf73a49fa0621d8b94d4664f33287 |
|
MD5 | 561bd78ba0797cd4f61019377d636234 |
|
BLAKE2b-256 | dd8c68e9f06e4c30d6ce93dbbb34dbc9e8b0f644873ffcf15c11c49628d541b5 |
Provenance
File details
Details for the file gunicorn_color-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: gunicorn_color-0.0.2-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 | bcc319b6313370f694d59f18fafcb3392a25b4101720210bda12b28bbf86bd42 |
|
MD5 | 6662bba8ae183df243398896e6fd5d44 |
|
BLAKE2b-256 | 982d6df56f40f9b3fcf69040a5aaf3de2416a4b8a67071c5a685e8ec56d093c9 |