log

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelFatal int = 0
	LevelError int = 1
	LevelWarn  int = 2
	LevelInfo  int = 3
	LevelDebug int = 4
)

设置日志等级

Variables

This section is empty.

Functions

func DebugLog

func DebugLog(format string, v ...interface{})

输出Debug信息

func ErrorLog

func ErrorLog(format string, v ...interface{})

输出Error信息

func FatalLog

func FatalLog(format string, v ...interface{})

输出Fatal信息

func InfoLog

func InfoLog(format string, v ...interface{})

输出Info信息

func LogFile

func LogFile(level int) error

配置日志文件

func WarnLog

func WarnLog(format string, v ...interface{})

输出Warn信息

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

设置日志

Jump to

Keyboard shortcuts

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