elm.ords.utilities.queued_logging

ELM Ordinance queued logging.

This module implements queued logging, mostly following this blog:” https://www.zopatista.com/python/2019/05/11/asyncio-logging/

Classes

LocalProcessQueueHandler(queue)

QueueHandler that works within a single process (locally).

LocationFileLog(listener, log_dir, location)

Context manager to write logs for a location to a unique file.

LocationFilter(location)

Filter down to logs from a coroutine processing a specific location.

LogListener(logger_names[, level])

Class to listen to logging queue from coroutines and write to files.

NoLocationFilter([name])

Filter that catches all records without a location attribute.