Closed changsheng1239 closed 6 months ago
I experience the same thing. I have not yet figured out how to disable the second time field in the logs.
Edit: I opened a PR to hopefully be able to configure this (and some other options).
Discussed here: https://github.com/samber/slog-echo/issues/16
Closing, since we changed the record format:
{
"time": "xyz", // from handler
"request": {
"time": "xyz", // request time, from middleware
"path": "/hello/world",
...
},
"response": {
"time": "xyz", // response time, from middleware
"duration": "10ms",
"status": 200,
...
},
...
}
Just a question, is the repeated
time
field expected ? is there a good way to dedup it ?