log

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *zap.Logger
)

Functions

func InitLogger

func InitLogger(cfg LoggerOpts)

Types

type LoggerOpts

type LoggerOpts struct {
	LogLevel      string `yaml:"log_level"`
	AccessLogFile string `yaml:"access_log"`
	ErrorLogFile  string `yaml:"error_log"`

	MaxSize    int `yaml:"max_size"`
	MaxBackups int `yaml:"max_backups"`
	MaxAge     int `yaml:"max_age"`
}

Jump to

Keyboard shortcuts

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