Example #1
0
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
Example #2
0
 def start(self):
     log.debug('start called, adding emit as observer')
     addObserver(self.emit)
Example #3
0
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
Example #4
0
 def start(self):
     log.debug('start called, adding emit as observer')
     addObserver(self.emit)