logline: the line, its Go package and Rust crate, and the shared cases #1

Merged
merge-queue merged 1 commit from first-release into main 2026-11-26 00:01:10 -08:00
Owner

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: Format and Parse (the line's grammar: time with ms and zone, pid=, level, message quoted only when it holds =/starts with a quote/is empty, key=value fields 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 .old past 1 MiB; Panic logs a crash and re-panics.
  • rust/: the same API as a crate (chrono for the local offset), a member of the root Cargo.toml workspace.
  • 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

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`: `Format` and `Parse` (the line's grammar: time with ms and zone, `pid=`, level, message quoted only when it holds `=`/starts with a quote/is empty, `key=value` fields 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 `.old` past 1 MiB; `Panic` logs a crash and re-panics. - `rust/`: the same API as a crate (chrono for the local offset), a member of the root `Cargo.toml` workspace. - `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](https://claude.com/claude-code)
logline: the line, its Go package and Rust crate, and the shared cases (AHT-204)
All checks were successful
merge-queue landed on main
Suite release / reserve (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite rust / check-services (pull_request) Has been skipped
Suite rust / check-typos (pull_request) Has been skipped
Suite rust / scope (pull_request) Successful in 16s
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite rust / check-test-linux (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite rust / check-audit (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 16s
Suite release / check-package (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Successful in 9s
Suite release / dispatch (pull_request) Has been skipped
Suite rust / check-machete (pull_request) Has been skipped
Suite go / reused-checks (pull_request) Successful in 9s
Suite go / check-test-windows (pull_request) Successful in 51s
Suite go / check-format (pull_request) Successful in 11s
Suite default / reused-checks (pull_request) Successful in 10s
Suite default / check-rules (pull_request) Successful in 9s
Suite rust / check-format (pull_request) Successful in 11s
Suite rust / check-test-windows (pull_request) Successful in 1m12s
Suite rust / reused-checks (pull_request) Successful in 22s
75d7f5569e
Format and Parse in Go (logline.go) and Rust (rust/), each tested against
testdata/golden.json so both write and read the same lines; a Logger that
appends to a file per line with 1 MiB rotation, or to a service's stdout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merge-queue deleted branch first-release 2026-11-26 00:01:11 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/logline!1
No description provided.