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.

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.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

gunicorn_color-0.0.1-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for gunicorn_color-0.0.1.tar.gz
Algorithm Hash digest
SHA256 66e43c6e050bb8faffe5738272ea9835ef484f9f59ede472a177d9b54a057a33
MD5 bed91ba73ca348eba81f026d6b62bec1
BLAKE2b-256 d8d71b10e29891186db0c378142d0ee83e1d13610444c594010b42cbd73ae784

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for gunicorn_color-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7a53df30b9e64a41ffebe8a1ce35cd954b4b87074490031b3153ea0ebd3563fe
MD5 618221c7c98bc533424ce6353d49dc9d
BLAKE2b-256 09ec8f11b757a710f03cd939ae84169a7701c4810aed2de2640493fbb657a021

See more details on using hashes here.

Provenance

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