magpie.cli.utils ================ .. py:module:: magpie.cli.utils Functions --------- .. autoapisummary:: magpie.cli.utils.set_logger_config magpie.cli.utils.make_logging_options magpie.cli.utils.setup_logger_from_options Module Contents --------------- .. py:function:: set_logger_config(logger: logging.Logger, force_stdout: bool = False, message_format: Optional[magpie.typedefs.Str] = None, datetime_format: Optional[magpie.typedefs.Str] = None, log_file: Optional[magpie.typedefs.Str] = None) -> logging.Logger Applies the provided logging configuration settings to the logger. .. py:function:: make_logging_options(parser: argparse.ArgumentParser) -> None Defines argument parser options for logging operations. .. py:function:: setup_logger_from_options(logger: logging.Logger, args: argparse.Namespace) -> None Uses argument parser options to setup logging level from specified flags. Setup both the specific CLI logger that is provided and the generic `magpie` logger.