SciLifeLab/logbook — pull request #2 by vals (2012-10-05 15:06:12+00:00)
Title: Feature/rabbit mq handler

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

```