Membrane Core v0.5.0 Membrane.Log.Router View Source
Defines a router that dispatches logs to instances of Membrane.Log.Logger.Base
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Converts atom with level to its number representation
Sends asynchronous call to the router, requesting it to forward log message to appropriate loggers.
Starts router as a separate process.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
level_to_val(atom)
View Sourcelevel_to_val(Membrane.Log.level_t()) :: 0 | 1 | 2
Converts atom with level to its number representation
Valid atoms are:
- :debug
- :info
- :warn
Sends asynchronous call to the router, requesting it to forward log message to appropriate loggers.
This functions assumes that passed log has level equal or greater than global level.
Link to this function
start_link(arg)
View Sourcestart_link({any(), GenServer.options()}) :: GenServer.on_start()
Starts router as a separate process.
Options are passed to Supervisor.start_link/3
.