logging

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogginHandler

type LogginHandler struct {
	// contains filtered or unexported fields
}

func NewLoggingHandler

func NewLoggingHandler(w io.Writer, opts *slog.HandlerOptions) *LogginHandler

func (*LogginHandler) Enabled

func (h *LogginHandler) Enabled(_ context.Context, level slog.Level) bool

func (*LogginHandler) Handle

func (h *LogginHandler) Handle(_ context.Context, r slog.Record) error

func (*LogginHandler) WithAttrs

func (h *LogginHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*LogginHandler) WithGroup

func (h *LogginHandler) WithGroup(group string) slog.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL