Implements interfaces: twisted.logger.ILogObserver

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

Method __init__
Method __call__ Forward to next observer if predicate allows it.
def __init__(self, observer, predicates, negativeObserver=lambda event: None):
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: ordered iterable of predicates)
negativeObserverAn observer to which this observer will forward events when predictates yield a negative result. (type: ILogObserver)
def __call__(self, event):

Forward to next observer if predicate allows it.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.