Write tuimail's log as the house's standard line through logline (AHT-204) #59
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/tuimail!59
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 tuimail's log onto the house's one log line, written by the
loglinecrate (https://openproject.home.romaine.life/wp/AHT-204).Before:
src/logfile.rswrote<RFC3339 ms+offset> <event> k=v...itself, totuimail.logor to stdout fortuimail session, with its own 1 MiB rotation totuimail.log.old.After: each line is
2026-11-26T10:30:43.123-08:00 pid=4242 error failed op="logging in" account=2 class=timeout. That is the time, the pid, the level, the event as the message, then the same fields as before.failed,crashandcontained-panicare error. The session's refusals and the accounts it leaves out are warn (the newlogfile::warning).start,stop,recovered,archivedand the session's notes are info. The session's start line isstart mode=session ....logline::Logger::open_filewrites the file and rotates it, still totuimail.log.oldpast 1 MiB. On Unix the file is first created 0600 without following a link, as before (logfile::start). After a rotation, logline creates the new file in the private data folder.logfile::Value: a static word, a number, anErrorKindor a panic's source place. Nothing a caller passes in is aString, and an error is still logged only by its class.Class::fieldsreplacesClass'sDisplay.logline::format, so they are the same standard line.logfile::Linkstill logs a repeating failure once, andrecoveredonce when it ends.Tests: the tests that read the log (
logfile,mcp,worker) go throughlogfile::tests::events, which checks every line withlogline::parse. New tests cover each event's level and fields, rotation toOLD_FILE, and the session's stdout lines.CLAUDE.md's description of the log is updated. The new dependency is
logline = { git = "https://forgejo.romaine.life/romaine-life/logline", tag = "v0.1.0" }. It comes from Forgejo, which check-fetches requires, and the repo is public.The open
mailwindows keep running the old build after the release until they are updated (TESTING.md). That isn't part of this PR.🤖 Generated with Claude Code