python-redis-log

A Python logging handler that publishes to redis pub/sub channels
Download

python-redis-log Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Publisher Name:
  • Jed Parsons
  • Publisher web site:
  • http://jedparsons.com

python-redis-log Tags


python-redis-log Description

A Python logging handler that publishes to redis pub/sub channels python-redis-log is a Redis pub/sub logging handler for Python.A logging handler for Python that publishes log messages using redis's pub/sub system. You can use this to read or respond to streaming log data in real time.Installation:Git clone this repo: git://github.com/jedp/python-redis-log.gitOr easy_install python-redis-logUsage:>>> from redislog import handlers, logger>>> l = logger.RedisLogger('my.logger')>>> l.addHandler(handlers.RedisHandler.to("my:channel"))>>> l.info("I like pie!")>>> l.error("Oh snap", exc_info=True)Redis clients subscribed to my:channel will get a json log record.If an exception is raised, and exc_info is True, the log will include a formatted traceback. Requirements: · Python · redis · redis · simplejson


python-redis-log Related Software