Logger#
- class maize.core.runtime.Logger(message_queue: Queue[logging.LogRecord | None], name: str | None = None, level: int = 20, file: Path | None = None)[source]#
Bases:
Runnable
Logging node for all nodes in the graph.
- Parameters:
message_queue – Queue to send logging messages to
name (str) – Name of the logger
level – Logging level
file – File to log to
- __init__(message_queue: Queue[logging.LogRecord | None], name: str | None = None, level: int = 20, file: Path | None = None) None [source]#
Methods
__init__
(message_queue[, name, level, file])cleanup
()Method run on component shutdown in the main process.
execute
()Main logging process, receiving messages from a global queue.
Attributes
name
signal
n_signals