View Source GRPC.Server.Interceptors.Logger (grpc v0.9.0)

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

Options

  • :level - the desired log level. Defaults to :info

Usage

defmodule Your.Endpoint do
  use GRPC.Endpoint

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

Summary

Functions