Skip to content
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

Need help in enabling log in grpc-gateway application #1495

Closed
subrat96 opened this issue Jul 1, 2020 · 1 comment
Closed

Need help in enabling log in grpc-gateway application #1495

subrat96 opened this issue Jul 1, 2020 · 1 comment

Comments

@subrat96
Copy link

subrat96 commented Jul 1, 2020

Is it possible to enable log for each request coming to grpc-gateway ?

After running grpc-gateway application I am not able to see any logs.

@johanbrandhorst
Copy link
Collaborator

There are several ways, none that are built into the gateway:

  • You can wrap the grpc-gateway mux in a http.Handler that logs all the requests made to it.
  • You can implement a gRPC client-side interceptor which logs requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants