grpc-spring-boot-starter icon indicating copy to clipboard operation
grpc-spring-boot-starter copied to clipboard

Not able to find how to create access logs

Open vikrantch-hk opened this issue 3 years ago • 3 comments

The context

how to create access logs?

The question

There is no documentation around it also I did not find any straight forward answer on SO so opening a bug.

vikrantch-hk avatar Jun 14 '21 07:06 vikrantch-hk

You can add interceptor that logs the requests

jvmlet avatar Jun 14 '21 07:06 jvmlet

@jvmlet thanks for quick revert, I want to do it more in spring way using somewhat similar configuration. In below commit they are doing similar thing for reactive netty. Do you think it's better to extend ServerInterceptor or in spring way ChannelDuplexHandler

reactor/reactor-netty@e26831e

vikrantch-hk avatar Jun 14 '21 14:06 vikrantch-hk

It's up to you, you can also have a look at BinaryLogs specification

jvmlet avatar Jun 14 '21 14:06 jvmlet