Skip to content

Instantly share code, notes, and snippets.

@SupermanScott
Created January 22, 2012 19:40
Show Gist options
  • Save SupermanScott/1658422 to your computer and use it in GitHub Desktop.
Save SupermanScott/1658422 to your computer and use it in GitHub Desktop.
Python Redis Logger
>>> from redislog import handlers, logger
>>> l = logger.RedisLogger('my.logger')
>>> l.addHandler(handlers.RedisHandler.to("my:channel", host='localhost', port=6379, password='foobie'))
>>> l.info("I like pie")
>>> l.error("Trousers!", exc_info=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment