lager_x v0.14.2 lager_x_passthrough_backend

Link to this section Summary

Functions

Callback implementation for c::gen_event.handle_call/2

Callback implementation for c::gen_event.handle_event/2

Callback implementation for c::gen_event.handle_info/2

Callback implementation for c::gen_event.init/1

Callback implementation for c::gen_event.terminate/2

Link to this section Types

Link to this type call()
call() :: :get_loglevel | {:set_loglevel, log_level()} | term()
Link to this type event()
event() :: {:log, message :: :lager_msg.lager_msg()} | term()
Link to this type init_opts()
init_opts() :: [{:passthrough_module, passthrough_module()} | {:passthrough_init_arg, term()}, ...]
Link to this type lager_util_is_loggable()
lager_util_is_loggable() :: (message :: :lager_msg.lager_msg(), log_level_number(), :lager_x_passthrough_backend -> boolean())
Link to this type lager_util_level_to_num()
lager_util_level_to_num() :: (log_level() -> log_level_number())
Link to this type log_level()
log_level() ::
  :debug |
  :info |
  :notice |
  :warning |
  :error |
  :critical |
  :alert |
  :emergency |
  :none
Link to this type log_level_number()
log_level_number() :: non_neg_integer() | {:mask, non_neg_integer()}
Link to this type on_handle_call()
on_handle_call() ::
  {:ok, log_level_number(), state()} |
  {:ok, :ok, state()} |
  {:ok, reply :: term(), state()} |
  {:ok, reply :: term(), state(), :hibernate} |
  {:swap_handler, reply :: term(), args1 :: term(), state(), handler2 :: module(), args2 :: term()} |
  {:remove_handler, reply :: term()}
Link to this type on_handle_event()
on_handle_event() ::
  {:ok, state()} |
  {:ok, state(), :hibernate} |
  {:swap_handler, args1 :: term(), state(), handler2 :: module(), args2 :: term()} |
  :remove_handler
Link to this type on_handle_info()
on_handle_info() ::
  {:ok, state()} |
  {:ok, state(), :hibernate} |
  {:swap_handler, args1 :: term(), state(), handler2 :: module(), args2 :: term()} |
  :remove_handler
Link to this type on_init()
on_init() ::
  {:ok, state()} |
  {:ok, state(), :hibernate} |
  {:error, reason :: term()}
Link to this type on_terminate()
on_terminate() :: {reason :: term()}
Link to this type passthrough_init_arg()
passthrough_init_arg() :: term()
Link to this type passthrough_module()
passthrough_module() :: module()
Link to this type passthrough_state()
passthrough_state() :: term()
Link to this type state()
state() :: %:lager_x_passthrough_backend{lager_util_is_loggable: lager_util_is_loggable(), lager_util_level_to_num: lager_util_level_to_num(), log_level: term(), log_level_number: log_level_number(), passthrough_init_arg: passthrough_init_arg(), passthrough_module: passthrough_module(), passthrough_state: passthrough_state()}

Link to this section Functions

Link to this function handle_call(call, state)
handle_call(call(), state()) :: on_handle_call()

Callback implementation for c::gen_event.handle_call/2.

Link to this function handle_event(event, state)
handle_event(event(), state()) :: on_handle_event()

Callback implementation for c::gen_event.handle_event/2.

Link to this function handle_info(info, state)
handle_info(info :: term(), state()) :: on_handle_info()

Callback implementation for c::gen_event.handle_info/2.

Link to this function init(opts)
init(init_opts()) :: on_init()

Callback implementation for c::gen_event.init/1.

Link to this function terminate(reason, state)
terminate(reason :: term(), state()) :: on_terminate()

Callback implementation for c::gen_event.terminate/2.