GRPC.Logger.Server (grpc v0.5.1)

Print log around server rpc calls, like:

17:18:45.151 [info]  Handled by HelloServer.say_hello
17:18:45.151 [info]  Response :ok in 11µs

Usage

defmodule Your.Endpoint do
  use GRPC.Endpoint

  intercept GRPC.Logger.Server, level: :info
end

Link to this section Summary

Link to this section Functions

Link to this function

call(req, stream, next, level)

Callback implementation for GRPC.ServerInterceptor.call/4.

Link to this function

formatted_diff(diff)

Callback implementation for GRPC.ServerInterceptor.init/1.