-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logging value in gin.Context after gin handler finish #95
Comments
See #76 |
@appleboy It makes two separate logs. What I wanted to do is adding some more data in gin.Context to one unified log |
@laggu What is your scenario? |
This is example code for my scenario
gin-zap also support this feature |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is there any way to log values in gin.Context after my gin handler finish?
I set some values to gin.Context and tried to log them with request log
However, as middleware is called before my gin handler, I don't have any values in gin.Context in logger middleware.
I think it would be better if logger middleware get one more function which called after user handler
so that, developer can log more useful information.
The text was updated successfully, but these errors were encountered: