Commit 097ca3ef by Joneq

修改错误记录

parent 74387cb9
Showing with 5 additions and 1 deletions
......@@ -54,7 +54,7 @@ func checkFileIsExist(filename string) bool {
@param file_pre 附加文件前缀
eg: logic.Loginfo("逾期统计开始","_yuqilv_");
*/
func Loginfo(writeString string,log_file_pre string) {
func Loginfo_back(writeString string,log_file_pre string) {
date := time.Now().Format("2006-01-02")
date2 := time.Now().Format("2006-01-02 15:04:05")
var filename = "./logs/"+date+log_file_pre+".txt"
......@@ -71,6 +71,10 @@ func Loginfo(writeString string,log_file_pre string) {
io.WriteString(f,"\r\n"+date2+"----"+ss) //写入文件(字符串)
//fmt.Print(err)
}
func Loginfo(log1,log_pre string) {
LogEs(log1)
}
/*
打印并且记录日志
*/
......
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