elm.ords.utilities.queued_logging.LocationFilter
- class LocationFilter(location)[source]
Bases:
FilterFilter down to logs from a coroutine processing a specific location.
- Parameters:
location (str) – Location identifier. For example,
"El Paso Colorado".
Methods
filter(record)Filter logging record.
- filter(record)[source]
Filter logging record.
- Parameters:
record (logging.LogRecord) – Log record containing the log message + default attributes. Must have a
locationattribute that is a string identifier, or this function will returnFalseevery time. Thelocationidentifier will be checked against the filter’s location attribute to determine the output result.- Returns:
bool – If the record’s
locationattribute matches the filter’slocationattribute.