class documentation
class FilteringLogObserver: (source)
Constructor: FilteringLogObserver(observer, predicates, negativeObserver)
Implements interfaces: twisted.logger.ILogObserver
ILogObserver
that wraps another ILogObserver
, but filters out events based on applying a series of ILogFilterPredicate
s.
Method | __call__ |
Forward to next observer if predicate allows it. |
Method | __init__ |
No summary |
Instance Variable | _negative |
Undocumented |
Instance Variable | _observer |
Undocumented |
Instance Variable | _should |
Undocumented |
def __init__(self, observer:
ILogObserver
, predicates: Iterable[ ILogFilterPredicate]
, negativeObserver: ILogObserver
= bitbucketLogObserver):
(source)
¶
Parameters | |
observer:ILogObserver | An observer to which this observer will forward events when predictates yield a positive result. |
predicates:Iterable[ | Predicates to apply to events before forwarding to the wrapped observer. |
negativeILogObserver | An observer to which this observer will forward events when predictates yield a negative result. |