mozilla-services/circus — pull request #161 by themgt (2012-06-16 00:01:54+00:00)
Title: attempt to move stream setup into Watcher class so it works from zmq

this is just a rough hack but it appears to work for my use case. before the stream_config method was in config.py so zmq-added watchers couldn't have log streams setup. this assumes the stream config wil be passed in as JSON dict/hash (the way it was being sent internally), like:

'stdout_stream' => {
'class' => 'FileStream',
'filename' => "test.log",
'refresh_time' => '0.3',
}