transparentmeta package

Subpackages

Submodules

transparentmeta.logger_config module

Logging configuration for the transparentmeta library.

This module provides a utility function to configure a default logger for the library. In most cases, users of the library should configure their own logging and control output from transparentmeta using standard Python logging.

transparentmeta.logger_config.configure_logging(level=20)[source]

Configures logging for the transparentmeta library.

This function sets up a logger named ‘transparentmeta’ with a stream handler, formatter, and log level. It avoids adding duplicate handlers if already set.

Parameters:

level (int) – The logging level (e.g., logging.INFO, logging.DEBUG). Defaults to logging.INFO.

Notes

  • If the logger already has handlers, no changes are made.

  • This function is optional. Users can instead configure logging

    themselves.

Module contents