Membrane Core v0.2.2 Membrane.Log.Logger View Source
Module containing functions spawning, shutting down, and handling messages sent to logger.
Link to this section Summary
Functions
Stops given logger process
Starts process for logger of given module, initialized with given options outside of the supervision tree
Starts process for logger of given module, initialized with given options and links it to the current process in the supervision tree
Link to this section Types
logger_options_t()
View Source
logger_options_t() :: struct() | nil
logger_options_t() :: struct() | nil
message_t() View Source
msg_level_t()
View Source
msg_level_t() :: :warn | :debug | :info
msg_level_t() :: :warn | :debug | :info
on_start()
View Source
on_start() :: GenServer.on_start()
on_start() :: GenServer.on_start()
process_options_t()
View Source
process_options_t() :: GenServer.options()
process_options_t() :: GenServer.options()
tag_t()
View Source
tag_t() :: atom()
tag_t() :: atom()
Link to this section Functions
shutdown(server, timeout \\ 5000) View Source
Stops given logger process.
It will wait for reply for amount of time passed as second argument (in milliseconds).
Will trigger calling handle_shutdown/2
logger callback.
Returns :ok
.
start(module, logger_options \\ nil, process_options \\ [])
View Source
start(module(), logger_options_t(), process_options_t()) :: on_start()
start(module(), logger_options_t(), process_options_t()) :: on_start()
Starts process for logger of given module, initialized with given options outside of the supervision tree.
Works similarly to GenServer.start/3
and has the same return values.
start_link(module, logger_options \\ nil, process_options \\ [])
View Source
start_link(module(), logger_options_t(), process_options_t()) :: on_start()
start_link(module(), logger_options_t(), process_options_t()) :: on_start()
Starts process for logger of given module, initialized with given options and links it to the current process in the supervision tree.
Works similarly to GenServer.start_link/3
and has the same return values.