log

package
v0.0.0-...-ea46de3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg Config)

func L

func L() *slog.Logger

Types

type Config

type Config struct {
	Format Format
	Level  Level
	Caller bool
}

type Format

type Format string
const (
	FormatJSON Format = "json"
	FormatText Format = "text"
)

type Level

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

func (Level) SlogLevel

func (l Level) SlogLevel() slog.Level

Jump to

Keyboard shortcuts

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