Documentation
ΒΆ
Index ΒΆ
- func AnyValueToString(v slog.Value) string
- func AppendAttrsToGroup(groups []string, actualAttrs []slog.Attr, newAttrs ...slog.Attr) []slog.Attr
- func AttrToValue(attr slog.Attr) (string, any)
- func AttrsToString(attrs ...slog.Attr) map[string]string
- func AttrsToValue(attrs ...slog.Attr) map[string]any
- func ConcatRecordAttrToAttr(attrs []slog.Attr, record *slog.Record) []slog.Attr
- func FindAttrByGroupAndKey(attrs []slog.Attr, groups []string, key string) (slog.Attr, bool)
- func FindAttrByKey(attrs []slog.Attr, key string) (slog.Attr, bool)
- func FormatError(err error) map[string]any
- func FormatErrorKey(values map[string]any, errorKeys ...string) map[string]any
- func FormatRequest(req *http.Request, ignoreHeaders bool) map[string]any
- func ReplaceAttrs(fn ReplaceAttrFn, groups []string, attrs ...slog.Attr) []slog.Attr
- func Source(sourceKey string, r *slog.Record) slog.Attr
- func UniqAttrs(attrs []slog.Attr) []slog.Attr
- func ValueToString(v slog.Value) string
- type ReplaceAttrFn
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
func AnyValueToString ΒΆ
func AppendAttrsToGroup ΒΆ
func ConcatRecordAttrToAttr ΒΆ added in v0.8.0
func FindAttrByGroupAndKey ΒΆ
func FormatError ΒΆ
func FormatErrorKey ΒΆ
func FormatRequest ΒΆ added in v0.5.0
func ReplaceAttrs ΒΆ added in v0.7.0
func ValueToString ΒΆ added in v0.2.0
Types ΒΆ
Click to show internal directories.
Click to hide internal directories.