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.1.0.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file gunicorn_color-0.1.0.tar.gz
.
File metadata
- Download URL: gunicorn_color-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c923dd956237c8884d30aa2111434373c2d5e7cc705246312fab99cb4c165e67 |
|
MD5 | 17537adea6e5cfd5cd7e0f127ae9da87 |
|
BLAKE2b-256 | c951e1a0050c8409e961334d1d063376a392bc8e02d03ff8aedccfb31e2b2190 |
File details
Details for the file gunicorn_color-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: gunicorn_color-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd57692a48137729547887e8ade20e0a6b434edb528ec40d5fe930c708771938 |
|
MD5 | 020d8a12ad8099df9b54adb1bd10ad62 |
|
BLAKE2b-256 | 85ccc556231141c9f5a7fb295156031d7dac5f6a16579312d6af492aa0454e0a |