# README
goCommon logger
初始化
import "github.com/obse4/goCommon/logger"
func main() {
logger.InitLogger(&logger.LogConfig{
LogOut: true,
StayDay: 1,
})
}
使用
import "github.com/obse4/goCommon/logger"
func main() {
logger.Debug("Hello %s", "world")
}
配置文件
查看配置logger.LogConfig
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
初始化日志.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
iota=0.
ErrorLevel=iota, iota=3.
ErrorLevel=iota, iota=4.
InfoLevel=iota, iota=1.
WarnLevel=iota, iota=2.
# Interfaces
No description provided by the author