LogflareLogger.HttpBackend (Logflare Logger Backend v0.11.0) View Source

Implements :gen_event behaviour, handles incoming Logger messages

Link to this section Summary

Link to this section Types

Specs

level() :: Logger.level()

Specs

log_msg() :: {level(), pid(), {Logger, message(), term(), metadata()}} | :flush

Specs

message() :: Logger.message()

Specs

metadata() :: Logger.metadata()

Link to this section Functions

Link to this function

code_change(old_vsn, config, extra)

View Source

Callback implementation for :gen_event.code_change/3.

Link to this function

configure_merge(options, config)

View Source

Specs

configure_merge(keyword(), LogflareLogger.BackendConfig.t()) ::
  LogflareLogger.BackendConfig.t()
Link to this function

handle_call(arg, config)

View Source

Specs

handle_call({:configure, keyword()}, LogflareLogger.BackendConfig.t()) ::
  {:ok, :ok, LogflareLogger.BackendConfig.t()}

Callback implementation for :gen_event.handle_call/2.

Link to this function

handle_event(arg1, config)

View Source

Specs

handle_event(log_msg(), LogflareLogger.BackendConfig.t()) ::
  {:ok, LogflareLogger.BackendConfig.t()}

Callback implementation for :gen_event.handle_event/2.

Link to this function

handle_info(arg1, config)

View Source

Callback implementation for :gen_event.handle_info/2.

Link to this function

init(_MODULE__, options \\ [])

View Source

Specs

init(LogflareLogger.HttpBackend, keyword()) ::
  {:ok, LogflareLogger.BackendConfig.t()}
Link to this function

terminate(reason, state)

View Source

Callback implementation for :gen_event.terminate/2.