get_logger
- get_logger(name: str) Logger[source]
Get a logger for the given module name.
This is the preferred way to obtain a logger in smartclass modules. The logger will be a child of the ‘smartclass’ logger, inheriting its configuration.
- Parameters:
name – Module name (typically __name__).
- Returns:
Configured logger instance.
- Example:
>>> from smartclass.logging import get_logger >>> logger = get_logger(__name__) >>> logger.info("Processing started")