使用设计模式优化发卡机
This commit is contained in:
@@ -8,6 +8,11 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func DefaultLogger() {
|
||||
logger, _ := zap.NewDevelopment()
|
||||
zap.ReplaceGlobals(logger)
|
||||
}
|
||||
|
||||
func InitLogger() {
|
||||
// 解析日志级别
|
||||
level, err := zapcore.ParseLevel(config.C.Log.Level)
|
||||
|
||||
Reference in New Issue
Block a user