def observerFactory(): twiggy.addEmitters(( '*', twiggy.levels.DEBUG, True, twiggy.outputs.StreamOutput( twiggy.formats.line_format, stream=sys.stdout) )) log.debug('observerFactory used to setup logging') return TwiggyLoggingObserver().emit
def start(self): log.debug('start called, adding emit as observer') addObserver(self.emit)
def observerFactory(): twiggy.addEmitters(('*', twiggy.levels.DEBUG, True, twiggy.outputs.StreamOutput(twiggy.formats.line_format, stream=sys.stdout))) log.debug('observerFactory used to setup logging') return TwiggyLoggingObserver().emit