slogutil

package
v1.39.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageOnlyHandler

type MessageOnlyHandler struct {
	Writer *os.File
}

func (*MessageOnlyHandler) Enabled

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

Enabled implements the slog.Handler interface.

func (*MessageOnlyHandler) Handle

Handle implements the slog.Handler interface.

func (*MessageOnlyHandler) WithAttrs

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

WithAttrs implements the slog.Handler interface.

func (*MessageOnlyHandler) WithGroup

func (h *MessageOnlyHandler) WithGroup(_ string) slog.Handler

WithGroup implements the slog.Handler interface.

Jump to

Keyboard shortcuts

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