compass.utilities.logs.NoLocationFilter#
- class NoLocationFilter(name='')[source]#
Bases:
FilterFilter 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 thelocationattribute is missing or is a string in the form “Task-XX”, the filter returnsTrue(i.e. record is emitted).- Returns:
bool– If the record’slocationattribute is “missing”.