twisted.logger.LogLevelFilterPredicate(object) class documentationtwisted.logger
          View Source
          (View In Hierarchy)
        
      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__ | |
| Instance Variable | defaultLogLevel | Undocumented | 
| 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 | 
| Instance Variable | _logLevelsByNamespace | Undocumented | 
| Parameters | defaultLogLevel | The default minimum log level. (type: LogLevel) | 
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.
| Parameters | namespace | A logging namespace, or None for the default namespace. (type: str (native string)) | 
| Returns | The log level for the specified namespace. (type: LogLevel) | |