diff --git a/middleware/access_log.go b/middleware/access_log.go index d5cb149..c30f118 100644 --- a/middleware/access_log.go +++ b/middleware/access_log.go @@ -85,12 +85,12 @@ func getLogResponseHeader(ctx *gin.Context, cfg *AccessConfig) map[string][]stri return responseHeaderTable } -// Access 记录请求日志 +// LogRequest 记录请求日志 // // Author : go_developer@163.com<白茶清欢> // // Date : 10:55 2022/7/14 -func Access(cfg *AccessConfig) gin.HandlerFunc { +func LogRequest(cfg *AccessConfig) gin.HandlerFunc { fillCfg(cfg) return func(ctx *gin.Context) { // 未传入配置或者未传入日志实例