logline: the line, its Go package and Rust crate, and the shared cases #1
Loading…
Reference in a new issue
No description provided.
Delete branch "first-release"
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?
Work package: https://openproject.home.romaine.life/wp/AHT-204
logline's first code: the estate's one log line, approved by Nelson (AHT-204).
Added
logline.go:FormatandParse(the line's grammar: time with ms and zone,pid=, level, message quoted only when it holds=/starts with a quote/is empty,key=valuefields quoted when needed, Go escapes);Logger(Open(app, override)at %LOCALAPPDATA%<app><app>.log or an override path,OpenFile,New(w)for a service's stdout), opening the file per line and moving it to.oldpast 1 MiB;Paniclogs a crash and re-panics.rust/: the same API as a crate (chrono for the local offset), a member of the rootCargo.tomlworkspace.testdata/golden.json: the cases both write and read identically (zones, quoting, escapes, line breaks, non-ASCII).Tested: the golden cases in Go and Rust, lines that aren't the standard refused, rotation, the override path, stream logging, panic; ci-check runs all 6 jobs (go vet/fmt/test, cargo fmt/clippy/test).
Ships:
release-module: merging takes v0.1.0.🤖 Generated with Claude Code