refactor: unify logging with log/slog #110
Reference in New Issue
Block a user
Delete Branch "refactor/slog-logging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Phase 5d — final architectural item. Replaces three uncoordinated logging systems with structured
log/slog.68 calls migrated:
log.Printf(45 calls) →slog.Error/Warn/Infoacross server, store, cluster, mainfmt.Fprintf(os.Stderr)(23 calls) →slog.Errorin main.goKept unchanged:
fmt.Println/Printffor CLI user output (version, banners, import results)engine.AddLogfor TUI-visible ring buffer (monitoring events, not system logs)Improvements:
log.Printforfmt.Fprintf(os.Stderr)remaining in production codeTest plan
go test -race ./...— all passgolangci-lint— 0 issueslog.Printfremaining (grep verified)fmt.Fprintf(os.Stderr)remaining (grep verified)