feat ✨ 优化logger使用
This commit is contained in:
1 parent
d3fa3ecf6c
commit
e23a1f615f
7 files changed
+24
-25
No files matched your search
@@ -76,7 +76,7 @@ func LoggerToFile() gin.HandlerFunc {
|
||||
"method": reqMethod,
|
||||
"uri": reqUri,
|
||||
}
|
||||
log.Info(logData)
|
||||
log.WithFields(logData).Info()
|
||||
//l := logger.Logger{Logger: log.Fields(logData)}
|
||||
//l.Info(logData)
|
||||
if c.Request.Method != "GET" && c.Request.Method != "OPTIONS" && config.LoggerConfig.EnabledDB {
|
||||
|
||||
Reference in new issue
Block a user