Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERROR = 0 ERROR_STR = "error" WARN = 1 WARN_STR = "warn" NOTICE = 2 NOTICE_STR = "notice" DEBUG = 3 DEBUG_STR = "debug" )
Variables ¶
This section is empty.
Functions ¶
func LevelToString ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) AppendInfo ¶
func (l *Logger) AppendInfo(args ...interface{})
type MLogger ¶
type MLogger []*Logger
func NewMLogger ¶
NewMLogger 创建新的日志对象,如果prefix==""则输出到标准输出
func (*MLogger) AppendInfo ¶
func (l *MLogger) AppendInfo(args ...interface{})
Click to show internal directories.
Click to hide internal directories.