Add structured logging #21

Closed
opened 2026-02-02 10:02:03 +01:00 by qwc · 0 comments
Owner

Phase 5: Enhancements & Features

Tasks

  • Replace log.Println/log.Printf with structured logger (e.g., slog from stdlib in Go 1.21+)
  • Add log levels, consistent fields (device, backup name, action)
  • Align with the message level system already in ui_handler.go (ERROR=0, FINISH=10, REMIND=20, INFO=30, DEBUG=40)

Files

  • all .go files
## Phase 5: Enhancements & Features ### Tasks - Replace `log.Println`/`log.Printf` with structured logger (e.g., `slog` from stdlib in Go 1.21+) - Add log levels, consistent fields (device, backup name, action) - Align with the message level system already in `ui_handler.go` (ERROR=0, FINISH=10, REMIND=20, INFO=30, DEBUG=40) ### Files - all `.go` files
qwc closed this issue 2026-02-02 17:33:03 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
qwc-open/backive#21
No description provided.