log

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug     = log.Debug
	Debugf    = log.Debugf
	Info      = log.Info
	Infof     = log.Infof
	Warn      = log.Warn
	Warning   = log.Warn
	Warnf     = log.Warnf
	Error     = log.Error
	Errorf    = log.Errorf
	Fatal     = log.Fatal
	Fatalf    = log.Fatalf
	WithField = log.WithField
	AccessLog = log.New()
)

Functions

func GetLevel

func GetLevel() log.Level

func InitEngine

func InitEngine(config *Config)

func SetDebug

func SetDebug()

Types

type Config

type Config struct {
	Output string `json:"output"` // 文件输出路径,不填输出终端
	Debug  bool   `json:"debug"`
}

Jump to

Keyboard shortcuts

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