shared_libs package

Subpackages

Submodules

shared_libs.logging_config module

shared_libs.logging_config.setup_logging(service_name, log_level=None)[source]

Sets up consistent logging for a given service or component.

Parameters:
  • service_name – The name of the service/component (e.g., ‘ear-mic’, ‘brain-llm’). Used in log messages to identify the source.

  • log_level – The desired log level (DEBUG, INFO, WARNING, ERROR, CRITICAL). Defaults to INFO if not specified, or reads from LOG_LEVEL env var.

Module contents