compass.utilities.logs#
COMPASS Ordinance logging utilities
This module implements queued logging, mostly following this blog:” https://www.zopatista.com/python/2019/05/11/asyncio-logging/
Classes
|
Filter that injects location information into the log record |
|
Filter to only pass through Exception logging (errors) |
|
File handler that writes exception info to JSON file |
|
Formatter that converts a record into a dictionary |
|
QueueHandler that works within a single process (locally) |
|
Context manager to write logs for a location to a unique file |
|
Filter down to logs for a specific location |
|
Class to listen to logging queue and write logs to files |
|
Filter that catches all records without a location attribute. |