Commit a44a403c by 杨树贤

接入龙哥的日志æŠ包

parent ddce1490
Showing with 23 additions and 0 deletions
package logger
import (
"LC_soapi/pkg/setting"
"github.com/ichunt2019/logger"
"log"
)
func Setup() {
logSetting := setting.LogSetting
logConfig := make(map[string]string)
logConfig["log_path"] = logSetting.LogPath
logConfig["log_chan_size"] = logSetting.LogChanSize
err := logger.InitLogger("file", logConfig)
if err != nil {
log.Fatalf("logger setup fail , reason is %v", err)
}
logger.Init()
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment