log

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v0.0.18

func Debug(ctx context.Context, msg string, args ...any)

func Error added in v0.0.19

func Error(ctx context.Context, msg string, args ...any)

func Info

func Info(ctx context.Context, msg string, args ...any)

func Warn added in v0.0.19

func Warn(ctx context.Context, msg string, args ...any)

Types

type TFHandler

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

func (*TFHandler) Enabled

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

Enabled implements slog.Handler.

func (*TFHandler) Handle

func (h *TFHandler) Handle(ctx context.Context, record slog.Record) error

Handle implements slog.Handler.

func (*TFHandler) WithAttrs

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

WithAttrs implements slog.Handler.

func (*TFHandler) WithGroup

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

WithGroup implements slog.Handler.

Jump to

Keyboard shortcuts

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