View Source Mediasoup.LoggerProxy (mediasoup_elixir v0.14.4)
Proxy rust layer logs to elixir logger
Usage:
defmodule MyApp.App do
use Application
def start(_type, _args) do
children = [
{ Mediasoup.LoggerProxy, max_level: :info }
# ..other children..
]
Supervisor.start_link(children, strategy: :one_for_one, name: MyApp.Supervisor)
end
end
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Types
@type config() :: {:max_level, :off | :error | :warn | :info | :debug} | {:filters, [filter_fun()]}
@type filter_fun() :: (Mediasoup.LoggerProxy.Record.t() -> :log | {:log, Mediasoup.LoggerProxy.Record.t()} | :stop | :ignore)
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Callback implementation for GenServer.init/1
.