Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelDebug = iota LevelInfo LevelError LevelOff )
Variables ¶
View Source
var ( Error = errorLog.Println ErrorF = errorLog.Printf Info = infoLog.Println InfoF = infoLog.Printf Debug = debugLog.Println DebugF = debugLog.Printf )
Functions ¶
func SetFlags ¶ added in v1.1.7
func SetFlags(flag int)
SetFlags default flag is (log.LstdFlags|log.Lshortfile|log.Lmsgprefix)
func SetLogLevel ¶ added in v1.1.1
func SetLogLevel(lv int)
SetLogLevel 设置日志级别
Debug:0 Info:1 Error:2 OFF:3 默认值为 Debug:0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.