mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 18:20:50 +00:00
调整log代码,兼容zap扩展支持fields
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user