elm.ords.utilities.queued_logging.NoLocationFilter
- class NoLocationFilter(name='')[source]
Bases:
Filter
Filter that catches all records without a location attribute.
Initialize a filter.
Initialize with the name of the logger which, together with its children, will have its events allowed through the filter. If no name is specified, allow every event.
Methods
filter
(record)Filter logging record.
- filter(record)[source]
Filter logging record.
- Parameters:
record (logging.LogRecord) – Log record containing the log message + default attributes. If the
location
attribute is missing or is a string in the form “Task-XX”, the filter returnsTrue
(i.e. record is emitted).- Returns:
bool – If the record’s
location
attribute is “missing”.