utils备注统一化, 删除多余的函数

This commit is contained in:
SliverHorn
2020-11-21 11:07:05 +08:00
parent 43eef673bc
commit 1e85e03713
18 changed files with 312 additions and 175 deletions

View File

@@ -11,7 +11,11 @@ import (
"time"
)
// GetWriteSyncer zap logger中加入file-rotatelogs
//@author: [SliverHorn](https://github.com/SliverHorn)
//@function: GetWriteSyncer
//@description: zap logger中加入file-rotatelogs
//@return: zapcore.WriteSyncer, error
func GetWriteSyncer() (zapcore.WriteSyncer, error) {
fileWriter, err := zaprotatelogs.New(
path.Join(global.GVA_CONFIG.Zap.Director, "%Y-%m-%d.log"),