Membrane Core v0.1.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
.
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(config, process_options \\ [])
View Source
start_link(any(), GenServer.options()) :: GenServer.on_start()
Starts router as a separate process.
Options are passed to Supervisor.start_link/3
.