|
@@ -6,9 +6,13 @@ import (
|
|
"time"
|
|
"time"
|
|
)
|
|
)
|
|
|
|
|
|
-func GinLogger() gin.HandlerFunc {
|
|
|
|
|
|
+func GinLogger(skipPaths []string) gin.HandlerFunc {
|
|
lazyInitialize()
|
|
lazyInitialize()
|
|
- return ginzap.Ginzap(logger, time.RFC3339, true)
|
|
|
|
|
|
+ return ginzap.GinzapWithConfig(logger, &ginzap.Config{
|
|
|
|
+ TimeFormat: time.RFC3339,
|
|
|
|
+ UTC: true,
|
|
|
|
+ SkipPaths: skipPaths,
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
func GinRecovery() gin.HandlerFunc {
|
|
func GinRecovery() gin.HandlerFunc {
|