More info
Versions:
- Bump go.uber.org/zap to 1.24.0
- Bump github.com/getsentry/sentry-go to 0.16.0
Changes:
- Add
ExtraFields
middleware
It allows you to inject some fields aftermath. For example:
router.Use(logger.RequestLogger(log)) // Injects logger into request context
router.Use(AuthMiddleware) // Check auth and inject user info into context or throw 401
router.Use(logger.WithExtraFields(...)) // Grab user info from previous middleware and add it to logger