Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
kaopu-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
097ca3ef
authored
Dec 24, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改错误记录
parent
74387cb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
internal/logic/mylog.go
internal/logic/mylog.go
View file @
097ca3ef
...
...
@@ -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
)
}
/*
打印并且记录日志
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment