新增zap日志库的支持,并提供Recovery的中间件

This commit is contained in:
SliverHorn
2020-09-02 15:13:54 +08:00
parent a46859987e
commit 01c4206443
6 changed files with 151 additions and 1 deletions
+3
View File
@@ -1,6 +1,8 @@
package global
import (
"go.uber.org/zap"
"gin-vue-admin/config"
"github.com/go-redis/redis"
oplogging "github.com/op/go-logging"
@@ -14,4 +16,5 @@ var (
GVA_CONFIG config.Server
GVA_VP *viper.Viper
GVA_LOG *oplogging.Logger
GVA_ZAP *zap.Logger
)