Documentation ¶
Index ¶
- Constants
- Variables
- func Black(msg string) string
- func Blue(msg string) string
- func Close()
- func Cyan(msg string) string
- func Debug(a ...interface{})
- func DebugCallDepth(callDepth int, a ...interface{})
- func Debugf(format string, a ...interface{})
- func DebugfCallDepth(callDepth int, format string, a ...interface{})
- func Error(a ...interface{})
- func Errorf(format string, a ...interface{})
- func Export(logger *Logger)
- func Fatal(a ...interface{})
- func Fatalf(format string, a ...interface{})
- func Green(msg string) string
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func Magenta(msg string) string
- func Red(msg string) string
- func SetColor(msg string, conf, bg, text int) string
- func SetMsgColor(level int, msg string) string
- func White(msg string) string
- func Yellow(msg string) string
- type Logger
Constants ¶
View Source
const ( TextBlack = iota + 30 TextRed TextGreen TextYellow TextBlue TextMagenta TextCyan TextWhite )
View Source
const Lshortfile = log.Lshortfile
View Source
const LstdFlags = log.LstdFlags
Variables ¶
View Source
var NowFunc = func() time.Time { return time.Now() }
Functions ¶
func DebugCallDepth ¶
func DebugCallDepth(callDepth int, a ...interface{})
func DebugfCallDepth ¶
自定义调用层级输出文件名
func SetMsgColor ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.