inithandler

package
v0.0.0-...-cf8a7de Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler only logs very basic error messages for use when logging intialization fails or there's otherwise an issue with startup.

func New

func New() *Handler

func (*Handler) Enabled

func (*Handler) Enabled(_ context.Context, lvl slog.Level) bool

func (*Handler) Handle

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

implements Handler.Handle.

func (*Handler) WithAttrs

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

WithAttrs implements slog.Handler

func (*Handler) WithGroup

func (h *Handler) WithGroup(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