Documentation ¶
Index ¶
- Variables
- func Close()
- func Debug(args ...interface{})
- func DebugF(format string, args ...interface{})
- func DebugFTimes(times int, format string, args ...interface{})
- func DebugTimes(times int, args ...interface{})
- func DisableTerminal()
- func Error(args ...interface{})
- func ErrorF(format string, args ...interface{})
- func ErrorFTimes(times int, format string, args ...interface{})
- func ErrorTimes(times int, args ...interface{})
- func HttpInfo(args ...interface{})
- func Info(args ...interface{})
- func InfoF(format string, args ...interface{})
- func InfoFTimes(times int, format string, args ...interface{})
- func InfoTimes(times int, args ...interface{})
- func Panic(args ...interface{})
- func Print(args ...interface{})
- func PrintF(format string, args ...interface{})
- func SetAppName(name string)
- func SetLogFile(name string)
- func SetOutService(ip string, port int)
- func SetOutServiceInfo2Panic()
- func SetOutServiceWarn2Panic()
- func Warn(args ...interface{})
- func WarnF(format string, args ...interface{})
- func WarnFTimes(times int, format string, args ...interface{})
- func WarnTimes(times int, args ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var LevelMap = map[Level]string{
0: "[Print] ",
1: "[INFO] ",
2: "[DEBUG] ",
3: "[WARN] ",
4: "[ERROR] ",
5: "[PANIC] ",
6: "[Http]",
}
Functions ¶
func DebugFTimes ¶
func DebugTimes ¶
func DebugTimes(times int, args ...interface{})
func DisableTerminal ¶
func DisableTerminal()
func ErrorFTimes ¶
func ErrorTimes ¶
func ErrorTimes(times int, args ...interface{})
func InfoFTimes ¶
InfoFTimes times 意思是打印第几级函数调用
func SetOutService ¶
func SetOutServiceInfo2Panic ¶
func SetOutServiceInfo2Panic()
func SetOutServiceWarn2Panic ¶
func SetOutServiceWarn2Panic()
func WarnFTimes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.