Skip to main content

Redis pub/sub logging handler for python

Project description

RedisLogs - A simplified version of RedisLog that works with Flask in a more intuitive way

A logging handler for Flask that publishes log messages using Redis's pub/sub system. You can use this to store python logs into Redis. Inspired on the package: by Jed Parsons.


The current stable release ::

pip install flask_redis_logs


- redis



>>> from redislogs.handlers import RedisHandler
>>> redis_handler = RedisHandler(
>>> host=[ Redis Host ],
>>> port=[ Redis Port ],
>>> db=[ Redis DB ],
>>> log_key=[ Redis Channel ]
>>> )
>>> redis_handler.setLevel(logging.INFO)
>>> app.logger.addHandler(redis_handler)
>>>"Infor log")

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
flask_redis_log-0.0.1.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None Mar 14, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page