maple.utils.logging.get_logger
- maple.utils.logging.get_logger(name: str) Logger
Create a namespaced logger for MAPLE components.
Returns a Python logger with the “maple.” prefix prepended to the given name. This provides consistent namespacing for all MAPLE framework loggers, making it easy to filter and configure them separately from other libraries.
The returned logger inherits configuration from the root logger set up by setup_logging(), including log level, format, and handlers.
- Parameters:
name – Component name for the logger, typically the module name or functional area (e.g., “policy.base”, “cleanup”, “health”). The “maple.” prefix is automatically added.
- Returns:
Configured logging.Logger instance with “maple.” namespace.