GRPC.Logger.Server (grpc v0.6.3-git-c634) View Source

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)

View Source

Callback implementation for GRPC.ServerInterceptor.call/4.

Callback implementation for GRPC.ServerInterceptor.init/1.