Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenhan wang
pastebin
Commits
596074c7
Commit
596074c7
authored
Jan 21, 2023
by
chenhan wang
Browse files
fix: drop the log file and only output the log to std flow
parent
2386ec06
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/app/middleware/login.go
View file @
596074c7
...
@@ -16,13 +16,6 @@ func Auth(next echo.HandlerFunc) echo.HandlerFunc {
...
@@ -16,13 +16,6 @@ func Auth(next echo.HandlerFunc) echo.HandlerFunc {
}
}
}
}
type
logInfo
struct
{
User_Agent
string
IP
string
time
string
path
string
}
/*
/*
向文件或 stdout 输出详细的日志,记录用户的 User-Agent、IP 地址、访问时间、访问路径等信息
向文件或 stdout 输出详细的日志,记录用户的 User-Agent、IP 地址、访问时间、访问路径等信息
User-Agent,访问路径,暂且无法实现
User-Agent,访问路径,暂且无法实现
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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