mirror of
https://github.com/idanoo/go-http-log
synced 2025-07-01 13:52:16 +00:00
Add remoteAddr to logs, update README.md
This commit is contained in:
parent
32e5408498
commit
1483171e11
2 changed files with 12 additions and 2 deletions
3
main.go
3
main.go
|
@ -29,7 +29,8 @@ func main() {
|
|||
body = []byte("")
|
||||
}
|
||||
|
||||
slog.Info("Request",
|
||||
slog.Info("Req",
|
||||
"remote", r.RemoteAddr,
|
||||
"method", r.Method,
|
||||
"path", r.URL.Path,
|
||||
"query", r.URL.RawQuery,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue