Skip to main content

Module runlog

Module runlog 

Source
Expand description

The run log (DESIGN.md “Logging”): in memory for the progress panes, and on disk line by line for after a run that died. Only the UI thread writes it; workers post their lines.

Modules§

log_files 🔒
run_log 🔒

Structs§

Log

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.