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
93a90881
authored
Dec 24, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
把日志放到一个文件里面
parent
097ca3ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
internal/logic/mylog.go
internal/logic/mylog.go
View file @
93a90881
...
...
@@ -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
...
...
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