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

Uploaded Source

Built Distribution

gunicorn_color-0.0.2-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.2.tar.gz.

File metadata

File hashes

Hashes for gunicorn_color-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f365d22734b519e0afe980bffe075ffd953bf73a49fa0621d8b94d4664f33287
MD5 561bd78ba0797cd4f61019377d636234
BLAKE2b-256 dd8c68e9f06e4c30d6ce93dbbb34dbc9e8b0f644873ffcf15c11c49628d541b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gunicorn_color-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bcc319b6313370f694d59f18fafcb3392a25b4101720210bda12b28bbf86bd42
MD5 6662bba8ae183df243398896e6fd5d44
BLAKE2b-256 982d6df56f40f9b3fcf69040a5aaf3de2416a4b8a67071c5a685e8ec56d093c9

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