pastas.utils.add_file_handlers#
- pastas.utils.add_file_handlers(logger: logging.Logger | None = None, filenames: tuple[str] = ('info.log', 'errors.log'), levels: tuple[int] = (logging.INFO, logging.ERROR), maxBytes: int = 10485760, backupCount: int = 20, encoding: str = 'utf8', fmt: str = '%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt: str = '%y-%m-%d %H:%M') None#
Method to add file handlers in 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.