Structured logging + --verbose/--quiet (optional --json)
Summary
Adopt Python logging across the CLI with consistent levels and user-friendly verbosity flags; optional machine-readable JSON logs.
Scope
- Default level INFO;
--verbose → DEBUG; --quiet → WARN/ERROR only.
- Optional
--json to emit structured logs (one JSON object per line).
- Replace
print calls with logger; keep UX-friendly messages by default.
Tasks
Acceptance criteria
Test plan
Unit test logger config; manual test commitlm generate --verbose shows debug traces.
Structured logging + --verbose/--quiet (optional --json)
Summary
Adopt Python
loggingacross the CLI with consistent levels and user-friendly verbosity flags; optional machine-readable JSON logs.Scope
--verbose→ DEBUG;--quiet→ WARN/ERROR only.--jsonto emit structured logs (one JSON object per line).printcalls with logger; keep UX-friendly messages by default.Tasks
Acceptance criteria
Test plan
Unit test logger config; manual test
commitlm generate --verboseshows debug traces.