There is no debate that structured logging has many advantages over the alternative, and Go 1.21 finally introduced the wonderful new package slog that brought structured logging into the standard library. In addition, it also supports different log levels, such as slog.Info, slog.Debug, slog.Warn, and slog.Error. In this post, I…