diff --git a/csst_dfs_commons/logging/setup.py b/csst_dfs_commons/logging/setup.py index 79a490efff84850390ca8c1e68e21dc27d2dbe58..a4880b01bedf5ed485b5a9fa4ee4b1c852fb9c70 100644 --- a/csst_dfs_commons/logging/setup.py +++ b/csst_dfs_commons/logging/setup.py @@ -69,6 +69,7 @@ def setup_test_logging(): os.makedirs(logs_dir) # Outputs DEBUG level logging to file fh = logging.FileHandler(os.path.join(logs_dir, 'csst_dfs_test.log'), + maxBytes=10*1024*1024, backupCount=10) fh.setLevel(logging.DEBUG) fh.setFormatter(ffmt)