logging

package
v0.0.0-...-bd23097 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger() *slog.Logger

Types

type Handler

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

func NewPrettyHandler

func NewPrettyHandler(opts *slog.HandlerOptions) *Handler

func (*Handler) Enabled

func (h *Handler) Enabled(ctx context.Context, level slog.Level) bool

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, r slog.Record) error

func (*Handler) WithAttrs

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

func (*Handler) WithGroup

func (h *Handler) WithGroup(name string) slog.Handler

type RestyLogger

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

func NewRestyLogger

func NewRestyLogger(logger *slog.Logger) *RestyLogger

func (*RestyLogger) Debugf

func (r *RestyLogger) Debugf(format string, v ...interface{})

func (*RestyLogger) Errorf

func (r *RestyLogger) Errorf(format string, v ...interface{})

func (*RestyLogger) Infof

func (r *RestyLogger) Infof(format string, v ...interface{})

func (*RestyLogger) Warnf

func (r *RestyLogger) Warnf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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