Commit Graph

4 Commits

Author SHA1 Message Date
4f55fcbef5 build stamping
- store build metadata (version, commit, date)
- multi-binary build: `make build` builds all packages from ./cmd
- devcontainer adds ./bin to the PATH by default
2026-06-13 20:32:24 +00:00
2ed3eaac9e pkg/logger: io.Writer injection, Flush(), -log-dump flag
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 19:31:20 +00:00
7bc91b0890 pkg/logger: replace NewDevelopment with NewCLI(level, debugFile)
Two modes for interactive CLI use — driven by debugFile presence:
- Normal (debugFile=""): human text on screen, INFO and above.
- Debug  (debugFile set): same screen + full JSON trace to file.

Auto-detects TTY; falls back to 12-factor JSON when piped/redirected.
IsInteractive() exposes TTY detection for call sites that need it.

Terminal format: INFO has no prefix (program's normal voice);
WARN prints "warning: …"; ERROR prints "error: …"; DEBUG "debug: …".

Breaking: NewDevelopment removed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 16:48:34 +00:00
5055d69685 pkg/logger and pkg/testutil 2026-05-14 21:45:17 +00:00