logx writes slog text records to $XDG_STATE_HOME/vcom/vcom.log (0600, dir 0700), rotates once on start above 5 MiB, takes the level from --debug, --log-level or VCOM_LOG (default warn) and redacts password/passphrase/ answers attributes. The old UI's log.Printf calls go through an slog adapter at debug level instead of a new /tmp file per run. main creates the run dir (sweeping dead ones), quits on SIGHUP/SIGTERM via program.Send, and after Program.Run always saves the session through the idempotent Model.Shutdown and removes the run dir. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| atomicfile | ||
| config | ||
| fs | ||
| homedir | ||
| logx | ||
| paths | ||
| state | ||
| testutil | ||
| theme | ||
| ui | ||
| vfs | ||