logs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelNone  = slog.LevelError << 1
	LevelError = slog.LevelError
	LevelWarn  = slog.LevelWarn
	LevelInfo  = slog.LevelInfo
	LevelDebug = slog.LevelDebug
)

Variables

This section is empty.

Functions

func ContextWith

func ContextWith(ctx context.Context, logger *slog.Logger) context.Context

func FromContext

func FromContext(ctx context.Context) *slog.Logger

func New

func New(out io.Writer, level slog.Level) *slog.Logger

func ParseLevel

func ParseLevel(s string) (slog.Level, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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