10 lines
266 B
Python
10 lines
266 B
Python
import logging
|
|
|
|
|
|
LOGGER_NAME = "bedit"
|
|
|
|
|
|
def get_logger(name: str | None = None) -> logging.Logger:
|
|
"""Return the shared application logger, optionally scoped to a module."""
|
|
return logging.getLogger(LOGGER_NAME if name is None else f"{LOGGER_NAME}.{name}")
|