Skip to main content

Dead simple access logger for Gunicorn with termcolor support.

Project description

Build Status Coverage Status

Gunicorn color logger

Dead simple access logger for Gunicorn with termcolor support.

screenshot

screenshot

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


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)

Uploaded Source

Built Distribution

gunicorn_color-0.1.0-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gunicorn_color-0.1.0.tar.gz.

File metadata

File hashes

Hashes for gunicorn_color-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c923dd956237c8884d30aa2111434373c2d5e7cc705246312fab99cb4c165e67
MD5 17537adea6e5cfd5cd7e0f127ae9da87
BLAKE2b-256 c951e1a0050c8409e961334d1d063376a392bc8e02d03ff8aedccfb31e2b2190

See more details on using hashes here.

File details

Details for the file gunicorn_color-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gunicorn_color-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dd57692a48137729547887e8ade20e0a6b434edb528ec40d5fe930c708771938
MD5 020d8a12ad8099df9b54adb1bd10ad62
BLAKE2b-256 85ccc556231141c9f5a7fb295156031d7dac5f6a16579312d6af492aa0454e0a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page