Documentation ¶
Overview ¶
Package loglv 日志打印功能对外接口 若需要其他文件名字的日志文件,支持复刻本文件到其他package中...
Index ¶
- Variables
- func Fatal(v ...any)
- func Fatalf(format string, v ...any)
- func Fatalln(v ...any)
- func InitLOG(isdaemon bool)
- func InitSet(getlogdir func() string, getexebasename func() string, ...)
- func Panic(v ...any)
- func Panicf(format string, v ...any)
- func Panicln(v ...any)
- func SetLOGprintLEVL(newloglv logger.LOGlevl) (curlv logger.LOGlevl)
- func SetLOGprintLEVLi(newlevl int)
- func SetOutput(bakName, newName string, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Dbg = logger.MakeDbg(std) //DEBUG
Dbg DEBUG日志
View Source
var Err = logger.MakeErr(std) //ERROR
Err ERROR日志
View Source
var Fta = logger.MakeFta(std) //FATAL
Fta FATAL日志
View Source
var Inf = logger.MakeInf(std) //INFO
Inf INFO日志
View Source
var War = logger.MakeWar(std) //WARN
War WARN日志
Functions ¶
func Fatalln ¶
func Fatalln(v ...any)
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
func Panicln ¶
func Panicln(v ...any)
Panicln is equivalent to Println() followed by a call to panic().
func SetLOGprintLEVLi ¶
func SetLOGprintLEVLi(newlevl int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.