twisted.logger._filter module documentationtwisted.logger
View Source
Filtering log observer.
| Function | shouldLogEvent | Determine whether an event should be logged, based on the result of
predicates. |
Determine whether an event should be logged, based on the result of
predicates.
By default, the result is True; so if there are no
predicates, everything will be logged.
If any predicate returns yes, then we will immediately
return True.
If any predicate returns no, then we will immediately
return False.
As predicates return maybe, we keep calling the next
predicate until we run out, at which point we return True.
| Parameters | predicates | The predicates to use. (type: iterable of ILogFilterPredicate) |
| event | An event (type: dict) | |
| Returns | True if the message should be forwarded on, False if not. (type: bool) | |