all2md.logging_utils

Centralized logging utilities for all2md entry points.

all2md.logging_utils.configure_logging(log_level: int | str, log_file: str | None = None, trace_mode: bool = False) Logger

Configure root logging handlers shared across CLI and services.

Parameters:
  • log_level (int | str) – Numeric logging level or string name (e.g., “INFO”).

  • log_file (str, optional) – Optional path to a log file for teeing log output.

  • trace_mode (bool, default False) – When true, emit timestamps and logger names for debugging traces.

Returns:

The configured root logger instance.

Return type:

logging.Logger