pastas.utils.set_console_handler#

pastas.utils.set_console_handler(logger: logging.Logger | None = None, level: int | None = logging.INFO, fmt: str = '%(levelname)s: %(message)s') None#

Method to add a console handler to the logger of Pastas.

Parameters:

logger (logging.Logger) – A Logger-instance. Use ps.logger to initialise the Logging instance that handles all logging throughout pastas, including all submodules and packages.