logging

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level slog.Level) *slog.Logger

...

func NewAsDefault

func NewAsDefault(level slog.Level) *slog.Logger

...

func NewAsDefaultFromConfig

func NewAsDefaultFromConfig(config Config) *slog.Logger

...

func NewFromConfig

func NewFromConfig(config Config) *slog.Logger

...

Types

type Config

type Config struct {
	// ...
	Level slog.Level `koanf:"level" default:"info"`
}

...

Jump to

Keyboard shortcuts

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