Documentation ¶
Index ¶
Constants ¶
View Source
const ( DebugLevel level = iota + 1 InfoLevel WarnLevel ErrorLevel PanicLevel NaN )
Variables ¶
This section is empty.
Functions ¶
func NewMultiFileWriter ¶
func NewMultiFileWriter() (writer, error)
func NewTerminalWriter ¶
func NewTerminalWriter() writer
func ParseLevel ¶
func ParseLevel(levelStr string) (lvl level)
ParseLevel 给定描述日志等级的字符串,返回其对应的 Level。
func ReadConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.