SUSE / telemetry-server

Proof of Concept Telemetry Server scaffolding
Apache License 2.0
2 stars 0 forks source link

Switch logging to use log/slog rather than simply log #10

Closed rtamalin closed 1 month ago

rtamalin commented 2 months ago

The log/slog package was added in go 1.21 and provides structured logging capabilities.

At the most basic level this allows us to use slog.Info(), slog.Warn(), etc to print leveled messages, rather than having to either use an external package, or implement our own level management scheme.

rtamalin commented 1 month ago

The basic work for this task is finished but we should move the app/logging.go support routines to the client library and have the server leverage them from there.