Membrane.Log.Router (Membrane Core v0.8.1) View Source

This module is deprecated. Use Elixir `Logger` instead.

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.

Specs

level_to_val(Membrane.Log.level_t()) :: 0 | 1 | 2

Converts atom with level to its number representation

Valid atoms are:

  • :debug
  • :info
  • :warn
Link to this function

send_log(level, message, time, tags \\ [])

View Source

Specs

send_log(atom(), any(), String.t(), [atom()]) :: :ok

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.

Specs

start_link({any(), GenServer.options()}) :: GenServer.on_start()

Starts router as a separate process.

Options are passed to Supervisor.start_link/3.