Source code for pi_portal.modules.configuration.logging.handlers.bases.rotation

"""RotatingFileHandlerBase class."""

from logging.handlers import RotatingFileHandler


[docs]class RotatingFileHandlerBase(RotatingFileHandler): """Rotating file handler base class."""
[docs] def __init__(self, filename: str): super().__init__( filename, backupCount=3, delay=True, encoding="utf-8", maxBytes=10000000, # 10MB )