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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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