mitsuhiko/logbook — pull request #55 by vals (2012-10-05 15:07:34+00:00)
Title: Feature/RabbitMQHandler

This implements functionality to send log messages over RabbitMQ, based on the existing implementation of messaging over ZeroMQ.

For example, to log something over RabbitMQ one can do

```python
from logbook import Logger
from logbook.queues import RabbitMQHandler

log = Logger("Testbook")
handler = RabbitMQHandler('amqp://guest:guest@localhost//')

with handler:
log.info("Hello world!")

```

And to recieve it:

```python
from logbook.queues import RabbitMQSubscriber
from logbook import StderrHandler

local_handler = CpichDBHandler()
with local_handler:
subscriber = RabbitMQSubscriber('amqp://guest:guest@localhost//')
subscriber.dispatch_forever()

```