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#
|
Return a child logger scoped under |
|
Configure console logging for MagScope modules. |
Module Contents#
- 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 explicitlevel) elevates the logging so that informational messages become visible.