Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Info(msg string, fields ...map[string]interface{})
Error(msg string, err error, fields ...map[string]interface{})
Debug(msg string, fields ...map[string]interface{})
Warn(msg string, fields ...map[string]interface{})
}
Logger 通用日志接口
func NewDefaultLogger ¶
NewDefaultLogger 创建默认日志记录器,写入指定文件
Click to show internal directories.
Click to hide internal directories.