dell / dell/iDRAC-Telemetry-Reference-Tools

Switch to structured logging using slog

Open
#151 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
44
Forks
32
PR merge metrics
No merged PRs in 30d

Description

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.

```go
import "log/slog"

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.