- Structured JSON logging available through --log-format=json or ONWATCH_LOG_FORMAT=json
Full changelog
What's New
Structured JSON logging (#70)
You can now switch log output from the default key=value text format to JSON via CLI flag or environment variable:
# CLI flag
onwatch --log-format json
# Environment variable
ONWATCH_LOG_FORMAT=json onwatch
JSON output uses Go's native slog.JSONHandler, producing machine-readable logs ideal for container logging pipelines (Fluentd, Loki, CloudWatch, etc.).
- Accepts aliases:
text,txt,fmtfor text format;jsonfor JSON - Case-insensitive input
- Works in all modes: background,
--debug,--debugstdout, and Docker - Defaults to
textif unset or unrecognized
Full Changelog: https://github.com/onllm-dev/onWatch/compare/v2.11.45...v2.11.46