mdvtools.logging_config

mdvtools.logging_config#

Functions#

setup_logger(→ logging.Logger)

Set up a logger with consistent formatting across all mdvtools modules.

get_logger(→ logging.Logger)

Get a logger with consistent formatting. This is a convenience function

Module Contents#

mdvtools.logging_config.setup_logger(name: str, level: int = logging.INFO) logging.Logger[source]#

Set up a logger with consistent formatting across all mdvtools modules.

Parameters:
  • name – The logger name (usually __name__)

  • level – The logging level (default: INFO)

Returns:

A configured logger instance

mdvtools.logging_config.get_logger(name: str, level: int = logging.INFO) logging.Logger[source]#

Get a logger with consistent formatting. This is a convenience function that calls setup_logger.

Parameters:
  • name – The logger name (usually __name__)

  • level – The logging level (default: INFO)

Returns:

A configured logger instance