#915 - Ensured LOG_DIR is created so primaite package can be used to perform setup while still logging using primaite logs.

This commit is contained in:
Chris McCarthy
2023-06-08 08:49:06 +01:00
parent 0795a7b4f8
commit 61bd70a6c9

View File

@@ -52,6 +52,8 @@ def _log_dir() -> Path:
LOG_DIR: Final[Path] = _log_dir()
"""The path to the app log directory as an instance of `Path` or `PosixPath`, depending on the OS."""
LOG_DIR.mkdir(exist_ok=True, parents=True)
LOG_PATH: Final[Path] = LOG_DIR / "primaite.log"
"""The primaite.log file path as an instance of `Path` or `PosixPath`, depending on the OS."""