mlog

package
v4.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func L

func L() *zap.Logger

func NewLogger

func NewLogger(lc *LogConfig) (*zap.Logger, error)

func S

func S() *zap.SugaredLogger

func SetLevel added in v4.5.3

func SetLevel(l zapcore.Level)

Types

type LogConfig

type LogConfig struct {
	Level    string `yaml:"level"`
	File     string `yaml:"file"`
	ErrFile  string `yaml:"err_file"`
	InfoFile string `yaml:"info_file"`
}

Jump to

Keyboard shortcuts

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