Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEBUG = Level(iota) INFO WARN FATAL PANIC )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
InfoOutFile string
ErrorOutFile string
Level Level
// 不显示时间
NotShowTime bool
// 时间格式,默认:YYYY-MM-DD hh:mm:ss
TimeLayout string
// 不显示颜色,默认:false
NotShowColor bool
// Debug 颜色,默认:FgBlue
DebugColor color.Colors
// Info 颜色,默认:无
InfoColor color.Colors
// Warn 颜色,默认:FgYellow
WarnColor color.Colors
// Fatal 颜色,默认:FgRed
FatalColor color.Colors
// Panic 颜色,默认:FgHiRed
PanicColor color.Colors
}
Click to show internal directories.
Click to hide internal directories.