diff options
Diffstat (limited to 'python/utils/__init__.py')
| -rw-r--r-- | python/utils/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/utils/__init__.py b/python/utils/__init__.py index c7faf097..f186a8b2 100644 --- a/python/utils/__init__.py +++ b/python/utils/__init__.py @@ -18,8 +18,10 @@ class SerenitasFileHandler(logging.FileHandler): class SerenitasRotatingFileHandler(logging.handlers.RotatingFileHandler): """simple class that encapsulates where we store our logs""" - def __init__(self, log_file, maxBytes=0): + def __init__(self, log_file, maxBytes=0, backupCount=0): super().__init__( - filename=os.path.join(os.getenv("LOG_DIR"), log_file), maxBytes=maxBytes + filename=os.path.join(os.getenv("LOG_DIR"), log_file), + maxBytes=maxBytes, + backupCount=backupCount, ) self.setFormatter(SerenitasFileHandler._formatter) |
