-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
All logging currently uses log.Printf which outputs unstructured plain text. This cannot be parsed by any observability stack (ELK, Loki, Datadog).
Scope:
- Replace all
log.Printfcalls acrossworker.go,engine.go,collector.gowithslog - Add structured fields per log call:
worker_id,file,duration_ms,bytes_saved,error - Add
-log-formatflag tomain.goacceptingtext(default) orjson - JSON mode should produce one parseable object per line
Example output in JSON mode:
{"time":"2026-02-18T10:30:00Z","level":"INFO","msg":"image processed","worker_id":1,"file":"photo.jpg","duration_ms":492,"bytes_saved":8432}Acceptance Criteria:
- Zero
log.Printfremaining in codebase -log-format=jsonproduces valid JSON per line- Existing
-verboseflag behaviour unchanged
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request