Implements interfaces: twisted.logger._filter.ILogFilterPredicate

ILogFilterPredicate that filters out events with a log level lower than the log level for the event's namespace.

Events that not not have a log level or namespace are also dropped.

Method __init__
Method logLevelForNamespace Determine an appropriate log level for the given namespace.
Method setLogLevelForNamespace Sets the log level for a logging namespace.
Method clearLogLevels Clears all log levels to the default.
Method __call__ Undocumented
def __init__(self, defaultLogLevel=LogLevel.info): (source)
ParametersdefaultLogLevelThe default minimum log level. (type: LogLevel)
def logLevelForNamespace(self, namespace): (source)

Determine an appropriate log level for the given namespace.

This respects dots in namespaces; for example, if you have previously invoked setLogLevelForNamespace("mypackage", LogLevel.debug), then logLevelForNamespace("mypackage.subpackage") will return LogLevel.debug.

ParametersnamespaceA logging namespace, or None for the default namespace. (type: str (native string))
ReturnsThe log level for the specified namespace. (type: LogLevel)
def setLogLevelForNamespace(self, namespace, level): (source)

Sets the log level for a logging namespace.

ParametersnamespaceA logging namespace. (type: str (native string))
levelThe log level for the given namespace. (type: LogLevel)
def clearLogLevels(self): (source)

Clears all log levels to the default.

def __call__(self, event): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2017-06-11 10:59:01.