Versions in this module Expand all Collapse all v0 v0.5.0 Sep 29, 2023 Changes in this version + func CallerPC(depth int) uintptr + func CallerSource(pc uintptr) slog.Source + func LogWriter(logger progress.Logger, level slog.Level) io.WriteCloser + func RemoveKeys(keys ...string) func([]string, slog.Attr) slog.Attr + type FormatLogger struct + func NewFormatLogger(h slog.Handler) *FormatLogger + func (l *FormatLogger) Debugf(format string, args ...any) + func (l *FormatLogger) Errorf(format string, args ...any) + func (l *FormatLogger) Infof(format string, args ...any) + func (l *FormatLogger) Warnf(format string, args ...any) + func (l *FormatLogger) With(args ...any) *FormatLogger + func (l *FormatLogger) WithAttrs(args ...any) progress.Logger + func (l *FormatLogger) WithGroup(name string) *FormatLogger + type MultiHandler struct + func NewMultiHandler(handlers []slog.Handler, opts *MultiHandlerOptions) *MultiHandler + func (h *MultiHandler) Enabled(_ context.Context, level slog.Level) bool + func (h *MultiHandler) Handle(ctx context.Context, r slog.Record) error + func (h *MultiHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *MultiHandler) WithGroup(name string) slog.Handler + type MultiHandlerOptions struct + Level slog.Leveler + type PrettyHandler struct + func NewPrettyHandler(w io.Writer, opts *PrettyHandlerOptions) *PrettyHandler + func (h *PrettyHandler) Enabled(_ context.Context, level slog.Level) bool + func (h *PrettyHandler) Handle(_ context.Context, r slog.Record) error + func (h *PrettyHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *PrettyHandler) WithGroup(name string) slog.Handler + type PrettyHandlerOptions struct + AddSource bool + DisableColor bool + ForceQuote bool + Level slog.Leveler + ReplaceAttr func(groups []string, a slog.Attr) slog.Attr + type WriterVar struct + func NewWriterVar(w io.Writer) *WriterVar + func (v *WriterVar) Set(w io.Writer) + func (v *WriterVar) Write(p []byte) (int, error)