logger

package
v0.0.0-...-c5af768 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, a ...interface{})

func Error

func Error(format string, a ...interface{})

func GetInstance

func GetInstance() *log

func SetLevel

func SetLevel(level LEVEL)

func SetPath

func SetPath(appname string)

func Trace

func Trace(format string, a ...interface{})

func Warn

func Warn(format string, a ...interface{})

Types

type LEVEL

type LEVEL = uint32
const (
	LOG_DEBUG LEVEL = 0 //调试信息
	LOG_TRACE LEVEL = 1 //调试信息
	LOG_WARN  LEVEL = 2 //警告
	LOG_ERROR LEVEL = 3 //错误
	LOG_NONE  LEVEL = 4 //不记录日志
)

Jump to

Keyboard shortcuts

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