diff --git a/src/log_setup/setup.py b/src/log_setup/setup.py index 3fa0f25..2b5e9b1 100644 --- a/src/log_setup/setup.py +++ b/src/log_setup/setup.py @@ -144,14 +144,14 @@ def _history_stem() -> str: def _file_handler( - name: str, history_stem: str, live_path: str, log_dir: str, rotate: Optional[str], + history_stem: str, live_path: str, log_dir: str, rotate: Optional[str], backup_count: int, max_bytes: int, compress: bool, keep_uncompressed: Optional[int], keep_compressed: Optional[int], warnings: list, ) -> logging.Handler: """build the configured file handler with custom rolling into log_dir - `name` is the LIVE stem; `history_stem` is the PROJECT stem that rolled/historic - files are named off, decoupled from the live file's own name. + `history_stem` is the PROJECT stem that rolled/historic files are named off, + decoupled from the live file's own name (`live_path`). """ tiered = keep_uncompressed is not None or keep_compressed is not None if rotate == "size": @@ -285,7 +285,7 @@ def setup_logging( if file_ok: try: fh = _file_handler( - stem, history_stem, live_path, log_dir, rotate, backup_count, max_bytes, compress, + history_stem, live_path, log_dir, rotate, backup_count, max_bytes, compress, keep_uncompressed, keep_compressed, warnings, ) fh.setFormatter(formatter)