Add middleware to include the request ID in all logs.
This commit is contained in:
parent
4096691df0
commit
26e456eae3
5 changed files with 28 additions and 10 deletions
|
|
@ -35,6 +35,7 @@ func BuildRouter(c *container.Container) {
|
|||
echomw.Recover(),
|
||||
echomw.Gzip(),
|
||||
echomw.Logger(),
|
||||
middleware.LogRequestID(),
|
||||
echomw.TimeoutWithConfig(echomw.TimeoutConfig{
|
||||
Timeout: c.Config.App.Timeout,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue