Write at-terminal.log as the house's standard line through logline (AHT-204) #38
Loading…
Reference in a new issue
No description provided.
Delete branch "aht-204-logline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Moves
at-terminal.logonto the house's one log line, written by theloglinecrate (https://openproject.home.romaine.life/wp/AHT-204).Before:
frontends/rioterm/src/atlog.rswrote<UTC time to the second>Z <fixed words>itself, with values inside the words (single instance lock failed with error 5). A start kept the file's newer half once it passed 1 MiB.After:
2026-11-26T10:30:43.123-08:00 pid=4242 warn single instance failed step=lock error=5. That is local time with milliseconds and its zone, the pid, the level, a fixed message, then fields. The file moves toat-terminal.log.oldpast 1 MiB (logline's rotation).start version=(info),program name=/program default shell(info),program ended status=/program ended without a status(info),exit(info),crash file= line=(error),previous run ended without saying how(warn),single instance failed step= error=(warn for lock and pipe, which go on, error for summon),offscreen window for window-shot(info),offscreen refused(error; the console still gets the usage sentence).._-.holds_only_fixed_wordsnow checks each parsed line's message and fields.civil_from_daysandkeep_newer_half.Left as it is: Rio's own
tracingsetup infrontends/rioterm/src/main.rs(setup_logs_by_filter_level). It logs to stdout, and tolog/rio.logonly withenable_log_fileor--enable-log-file. It is upstream's debug log, isn't turned on in what ships, and isn't one of the house's logs.rio-window's examples set up tracing too, and they aren't shipped either.Tests: the
atlogtests write through a temporarylogline::Loggerand parse every line withlogline::parse. New: a log ending in an old-form line isn't counted against its run. The firstci-checkrun on this branch failed once in the Windowscargo teststep; the run kept no detail of which test. A rerun ofci-checkand a full localcargo test --workspaceboth passed.The dependency is
logline = { git = "https://forgejo.romaine.life/romaine-life/logline", tag = "v0.1.0" }.🤖 Generated with Claude Code