Versions in this module Expand all Collapse all v0 v0.1.0 Sep 10, 2023 Changes in this version + const KindAny + const KindBool + const KindDuration + const KindFloat64 + const KindGroup + const KindInt64 + const KindLogValuer + const KindString + const KindTime + const KindUint64 + const LevelKey + const MessageKey + const SourceKey + const TimeKey + func Debug(msg string, args ...any) + func DebugContext(ctx context.Context, msg string, args ...any) + func Error(msg string, args ...any) + func ErrorContext(ctx context.Context, msg string, args ...any) + func Info(msg string, args ...any) + func InfoContext(ctx context.Context, msg string, args ...any) + func Log(ctx context.Context, level Level, msg string, args ...any) + func LogAttrs(ctx context.Context, level Level, msg string, attrs ...Attr) + func NewLogLogger(h Handler, level Level) *log.Logger + func SetDefault(l *Logger) + func Warn(msg string, args ...any) + func WarnContext(ctx context.Context, msg string, args ...any) + type Attr = slog.Attr + func Any(key string, value any) Attr + func Bool(key string, v bool) Attr + func Duration(key string, v time.Duration) Attr + func Float64(key string, v float64) Attr + func Group(key string, args ...any) Attr + func Int(key string, value int) Attr + func Int64(key string, value int64) Attr + func String(key, value string) Attr + func Time(key string, v time.Time) Attr + func Uint64(key string, v uint64) Attr + type Handler = slog.Handler + type HandlerOptions = slog.HandlerOptions + type JSONHandler = slog.JSONHandler + func NewJSONHandler(w io.Writer, opts *HandlerOptions) *JSONHandler + type Kind = slog.Kind + type Level = slog.Level + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + type LevelVar = slog.LevelVar + type Leveler = slog.Leveler + type LogValuer = slog.LogValuer + type Logger = slog.Logger + func Default() *Logger + func New(h Handler) *Logger + func With(args ...any) *Logger + type Record = slog.Record + func NewRecord(t time.Time, level Level, msg string, pc uintptr) Record + type Source = slog.Source + type TextHandler = slog.TextHandler + func NewTextHandler(w io.Writer, opts *HandlerOptions) *TextHandler + type Value = slog.Value + func AnyValue(v any) Value + func BoolValue(v bool) Value + func DurationValue(v time.Duration) Value + func Float64Value(v float64) Value + func GroupValue(as ...Attr) Value + func Int64Value(v int64) Value + func IntValue(v int) Value + func StringValue(value string) Value + func TimeValue(v time.Time) Value + func Uint64Value(v uint64) Value