log

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 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"
)

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