Documentation ¶
Index ¶
- Constants
- Variables
- func AppendAttrs(ctx context.Context, attrs ...Attr) context.Context
- func Debug(format string, argsAndAttrs ...any)
- func Error(format string, argsAndAttrs ...any)
- func Fatal(format string, argsAndAttrs ...any)
- func Info(format string, argsAndAttrs ...any)
- func Log(ctx context.Context, level Level, format string, argsAndAttrs ...any)
- func Warn(format string, argsAndAttrs ...any)
- func WithAttrs(ctx context.Context, attrs ...Attr) context.Context
- type Attr
- type Level
- type Logger
Constants ¶
Variables ¶
View Source
var ( Group = slog.Group Any = slog.Any Bool = slog.Bool Duration = slog.Duration Float64 = slog.Float64 Int = slog.Int Int64 = slog.Int64 String = slog.String Time = slog.Time Uint64 = slog.Uint64 )
View Source
var ( New = logs.New SetDefault = logs.SetDefault OnFatal = func() { os.Exit(1) } )
Functions ¶
func AppendAttrs ¶ added in v2.0.22
Types ¶
Click to show internal directories.
Click to hide internal directories.