Commit Graph

4 Commits

Author SHA1 Message Date
9574c0faad pkg/check
- optimized test-code for readability and small API surface
- native support for pkg.result
2026-06-11 18:41:07 +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