logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopLogHandler

type NoopLogHandler struct{}

NoopLogHandler is a no-op log handler.

func (*NoopLogHandler) Enabled

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

Enabled implementation of slog.Handler for probe.NoopLogHandler. Returns false for all log levels.

func (*NoopLogHandler) Handle

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

Handle implementation of slog.Handler for NoopLogHandler.

func (*NoopLogHandler) WithAttrs

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

WithAttrs implementation of slog.Handler for NoopLogHandler.

func (*NoopLogHandler) WithGroup

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

WithGroup implementation of slog.Handler for NoopLogHandler.

Jump to

Keyboard shortcuts

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