log

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LevelDebug = "DEBUG"
	LevelInfo  = "INFO"
	LevelWarn  = "WARN"
	LevelError = "ERROR"
)
View Source
var Logger *slog.Logger

Functions

func Init

func Init()

Types

type Conf

type Conf struct {
	AppName    string `yaml:"app_name"`
	Level      string `yaml:"log_level"`
	MaxSize    int    `yaml:"log_max_size"`
	MaxBackups int    `yaml:"log_max_backups"`
	MaxAge     int    `yaml:"log_max_age"`
}

func FromEnv

func FromEnv() Conf

Jump to

Keyboard shortcuts

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