logs

package
v0.0.6-beta Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level slog.Level, logFile string) (*slog.Logger, func(), error)

Types

type ContextHandler

type ContextHandler struct {
	slog.Handler
	// contains filtered or unexported fields
}

func (*ContextHandler) Handle

func (h *ContextHandler) Handle(ctx context.Context, r slog.Record) error

type ContextKeyProvider

type ContextKeyProvider func() []LoggerContextKey

type LoggerContextKey

type LoggerContextKey string

Jump to

Keyboard shortcuts

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