Skip to content

flowmachine.core.logging

init_logging

init_logging()
Source: flowmachine/core/logging.py

Initialise root logger 'flowmachine' and sub-logger 'flowmachine.debug', and configure structlog so that it passes any messages on to the standard library loggers.

set_log_level

set_log_level(logger_name: str, log_level: str) -> None
Source: flowmachine/core/logging.py

Set log level for logger flowmachine.debug.

Parameters

  • logger_name: str

    Name of the logger for which to set the log level.

  • log_level: str

    Level to emit logs at. This must be one of the standard pre-defined log levels ("DEBUG", "INFO", "ERROR", etc.). If an invalid log level is passed, "ERROR" will be used.

Returns

  • None