slogx

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDefaultLogger

func SetupDefaultLogger(conf *Config) (*slog.Logger, error)

Types

type Config

type Config struct {
	Level Level `confx:"level" usage:"Logging level" validate:"required,oneof=debug info warn error"`
}

type Level added in v3.2.0

type Level string
const (
	LevelDebug Level = "debug"
	LevelInfo  Level = "info"
	LevelWarn  Level = "warn"
	LevelError Level = "error"
)

Jump to

Keyboard shortcuts

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