SUSE / telemetry

Telemetry scaffolding
Apache License 2.0
0 stars 0 forks source link

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

Closed rtamalin closed 2 months ago

rtamalin commented 3 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 3 months ago

I have implemented slog logging on the server side, per SUSE/telemetry-server#10, including a simple setup and management framework. We should move setup and management framework implementation to the this repo and switch to slog logging here also, and then update the server implementation to import from this repo.