log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 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 Logger

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

Logger is a wrapper around an slog.Logger with additional helpers and nil checking. TODO: Add helpers for additional logging levels as needed. Each should call the log helper method, not the underlying logger directly.

func Wrap

func Wrap(logger *slog.Logger) Logger

Wrap the slog logger.

func (*Logger) Err

func (l *Logger) Err(ctx context.Context, err error)

Err logs a protocol error with structured logging.

Jump to

Keyboard shortcuts

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