magscope._logging#

Internal logging helpers for MagScope.

This module centralizes logging configuration so that the console output can be silenced by default.

Only warnings and errors remain active unless configure_logging() is invoked with verbose=True (or an explicit log level). The helper returns logging.Logger instances namespaced under "magscope" so that submodules can log without manually wiring handlers.

Attributes#

Functions#

get_logger(→ logging.Logger)

Return a child logger scoped under magscope.

configure_logging(→ None)

Configure console logging for MagScope modules.

Module Contents#

magscope._logging._ROOT_LOGGER_NAME = 'magscope'[source]#
magscope._logging.get_logger(name: str) logging.Logger[source]#

Return a child logger scoped under magscope.

Parameters:

name – Module or component name to suffix the root logger with.

magscope._logging.configure_logging(*, verbose: bool = False, level: int | None = None) None[source]#

Configure console logging for MagScope modules.

By default only warnings and errors propagate to the console. Passing verbose=True (or an explicit level) elevates the logging so that informational messages become visible.