logger

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MulanPSL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootPath, ProcName = lpath.GetRootPath()
)

Functions

func DPanic

func DPanic(args ...interface{})

func DPanicf

func DPanicf(template string, args ...interface{})

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(template string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(template string, args ...interface{})

func Info

func Info(args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func NewLog

func NewLog(log *Log)

func Panic

func Panic(args ...interface{})

func Panicf

func Panicf(template string, args ...interface{})

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

Types

type Log

type Log struct {
	Handlers []string `mapstructure:"handlers"` // 日志输出方式
	Level    string   `mapstructure:"level"`    // 日志目录
	Path     string   `mapstructure:"dir"`      // 日志文件路径
	LogName  string   `mapstructure:"logname"`
	Retain   int      `mapstructure:"retain"` // 文件最多保存多少天
	// contains filtered or unexported fields
}

func (*Log) Init

func (l *Log) Init()

Jump to

Keyboard shortcuts

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