提交 0f29e635 编写于 作者: X xiyangxixian

fix Setlogger

上级 5d3980e0
......@@ -49,8 +49,8 @@ func LoggerInit() {
"daily": false,
"maxdays": 0,
}
logConfigStr, _ := json.Marshal(logConfig)
err := Log.SetLogger(logs.AdapterFile, fmt.Sprintf(string(logConfigStr)))
logConfigJson, _ := json.Marshal(logConfig)
err := Log.SetLogger(logs.AdapterFile, fmt.Sprintf(string(logConfigJson)))
if err != nil {
fmt.Println(err.Error())
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册