modulepackage
0.0.0-20201109054443-b7bd43c03770
Repository: https://github.com/xmkuban/logger.git
Documentation: pkg.go.dev
# README
简单使用方法
package main
import "github.com/xmkuban/logger"
func main() {
logger.Error("test")
}
如果需要更换日志实现可以调用 logger.SetLogger()
目前提供beego,cleanlog,seelog的实现,切换已实现的如下
logger.InitBeegoLogByConsole(5)
# Packages
No description provided by the author
# Functions
Debug formats message using the default formats for its operands and writes to log with level = Debug.
Debugf formats message according to format specifier and writes to log with level = Debug.
Error formats message using the default formats for its operands and writes to log with level = Error.
Errorf formats message according to format specifier and writes to log with level = Error.
No description provided by the author
No description provided by the author
Info formats message using the default formats for its operands and writes to log with level = Info.
Infof formats message according to format specifier and writes to log with level = Info.
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
No description provided by the author
Warn formats message using the default formats for its operands and writes to log with level = Warn.
Warnf formats message according to format specifier and writes to log with level = Warn.
# Constants
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
No description provided by the author
No description provided by the author
# Interfaces
LoggerInterface represents structs capable of logging Seelog messages.