Commit 93a90881 by Joneq

把日志放到一个文件里面

parent 097ca3ef
Showing with 1 additions and 2 deletions
......@@ -92,10 +92,9 @@ func LogEs(content string) {
var esLog EsLogJson
date := time.Now().Format("2006-01-02")
dateTime := time.Now().Format("2006-01-02 15:04:05")
strTotime := time.Now().Unix()
filename := "./logs/" + date + "err.log"
filename := "./logs/err.log"
esLog.App = "kaopu-server"
esLog.DateStr = dateTime
......
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