调整log代码,兼容zap扩展支持fields

This commit is contained in:
linwenxiang
2021-03-05 15:13:36 +08:00
parent 39dd1ee6f8
commit 75711922b4
47 changed files with 267 additions and 275 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ type Api struct {
}
// GetLogger 获取上下文提供的日志
func (e *Api) GetLogger(c *gin.Context) logger.Logger {
return logger.GetRequestLogger(c)
func (e *Api) GetLogger(c *gin.Context) *logger.Logger {
return GetRequestLogger(c)
}
// GetOrm 获取Orm DB