j2labs/brubeck — pull request #70 by stuntgoat (2012-05-17 18:37:05+00:00)
Title: add pub sub logging

within the app I would pass the `logger` object, which is simply a zeromq PUB socket.

ctx = zmq.Context()
logging_sock = ctx.socket(zmq.PUB)
logging_sock.bind("tcp://127.0.0.1:9955")
config = {
'msg_conn': Mongrel2Connection('tcp://127.0.0.1:9999', 'tcp://127.0.0.1:9998', logger=logging_sock),
'handler_tuples': [(r'^/chatsocket', WebsocketHandler),
(r'^/', DisplayChatPage)],

}
app = Brubeck(**config)
app.run()

Considering that a WSGI server wouldn't normally have a need to run zeromq, I don't know how you would want to handle logging with `WSGIConnection`.