Skip to content

Switch to structured logging using slog #151

@TrevorSquillario

Description

@TrevorSquillario

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")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions