Skip to main content

Module log_files

Module log_files 

Source

Constants§

KEEP_LOGS
Runs kept per game folder: enough that a re-run or two before asking for help cannot prune the run that failed.

Functions§

log_dir
<game dir>\.pacenotes\logs, beside the ledger, so one folder holds everything this installer knows about one game.
log_path
One file per run, named by its utc_time::file_stamp, so reopening the installer to read a run cannot erase it.
prune
Deletes all but the newest keep run logs in dir, by name rather than modification time, so a log restored from a backup cannot pass for the newest; failures are ignored, since housekeeping must never stop an install.