def emit(self, eventDict): log.fields(eventDict=eventDict).debug('emit called') try: self._emit(eventDict) except: log.trace().error('Error logging message.')
def __init__(self, loggerName=None): loggerName = loggerName or 'twisted' log.fields( loggerName=loggerName).debug('Created TwiggyLoggingObserver') self._logger = twiggy.log.name(loggerName)
def __init__(self, loggerName=None): loggerName = loggerName or 'twisted' log.fields(loggerName=loggerName).debug( 'Created TwiggyLoggingObserver') self._logger = twiggy.log.name(loggerName)