iDRAC-Telemetry-Reference-Tools icon indicating copy to clipboard operation
iDRAC-Telemetry-Reference-Tools copied to clipboard

Switch to structured logging using slog

Open TrevorSquillario opened this issue 1 year ago • 0 comments

https://go.dev/blog/slog

The new log/slog package in Go 1.21 brings structured logging to the standard library. This will help when deployed to Kubernetes and aggregating logs. I may work up a PR for this one.

import "log/slog"

func main() {
    slog.Info("hello, world")
}

TrevorSquillario avatar Oct 04 '24 01:10 TrevorSquillario