View Source Mediasoup.LoggerProxy (mediasoup_elixir v0.12.0)
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}
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Callback implementation for GenServer.init/1
.