package slogutils import "log/slog" func Error(err error) slog.Attr { return slog.Attr{ Key: "error", Value: slog.StringValue(err.Error()), } }