log

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() func(ctx context.Context, query, args string)

Default log/slog with LevelDebug

func New

func New(level Level) func(ctx context.Context, query, args string)

New set a log/slog logger and logs as debug

Types

type Level

type Level int

Log level

const (
	LevelDebug Level = iota
	LevelInfo
	LevelWarn
	LevelError
)

Jump to

Keyboard shortcuts

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