class documentation

class twisted.logger.FilteringLogObserver: (source)

View In Hierarchy

ILogObserver that wraps another ILogObserver, but filters out events based on applying a series of ILogFilterPredicates.

Method __init__ No summary
Method __call__ Forward to next observer if predicate allows it.
Instance Variable _observer Undocumented
Instance Variable _shouldLogEvent Undocumented
Instance Variable _negativeObserver Undocumented
def __init__(self, observer, predicates, negativeObserver=bitbucketLogObserver): (source)
ParametersobserverAn observer to which this observer will forward events when predictates yield a positive result. (type: ILogObserver)
predicatesPredicates to apply to events before forwarding to the wrapped observer. (type: Iterable[ILogFilterPredicate])
negativeObserverAn observer to which this observer will forward events when predictates yield a negative result. (type: ILogObserver)
_observer = (source)

Undocumented

_shouldLogEvent = (source)

Undocumented

_negativeObserver = (source)

Undocumented

def __call__(self, event): (source)

Forward to next observer if predicate allows it.

ParameterseventUndocumented (type: LogEvent)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.