View Source GRPC.Client.Interceptors.Logger (grpc v0.11.1)
Print log around client rpc calls, like
17:13:33.021 [info]  Call helloworld.Greeter.say_hello -> :ok (58 ms)
17:13:33.021 [error]  Call helloworld.Greeter.say_hello -> %GRPC.RPCError{status: 3, message: "Invalid argument"} (58 ms)Options
:level- the desired log level. Defaults to:info
Usage
{:ok, channel} = GRPC.Stub.connect("localhost:50051", interceptors: [GRPC.Client.Interceptors.Logger])Usage with custom level
{:ok, channel} = GRPC.Stub.connect("localhost:50051", interceptors: [{GRPC.Client.Interceptors.Logger, level: :warning}])