Documentation ¶
Index ¶
- func ByteReaderFunc(data []byte) func() io.Reader
- func NewLogHandler(t Logger, level slog.Level) slog.Handler
- type LogHandler
- func (h *LogHandler) Enabled(ctx context.Context, level slog.Level) bool
- func (h *LogHandler) Handle(ctx context.Context, r slog.Record) error
- func (h *LogHandler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (h *LogHandler) WithGroup(name string) slog.Handler
- func (h *LogHandler) Write(data []byte) (int, error)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteReaderFunc ¶
Types ¶
type LogHandler ¶
type LogHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.