Youtrack Logger Backend v0.1.13 Logger.Backends.Youtrack View Source

A module implementing an elixir logger backend that logs to youtrack.

Link to this section Summary

Functions

Callback implementation for c::gen_event.code_change/3

Callback implementation for c::gen_event.handle_call/2

Responsible logic for the actual logging. Checking if the level is acceptable to log. Generating the logging formats. Logging the resulting messages

Callback implementation for c::gen_event.handle_info/2

Initial entry point on creating the gen event. Will create if the given config is valid

Callback implementation for c::gen_event.terminate/2

Link to this section Functions

Link to this function code_change(old_vsn, state, extra) View Source
code_change(any(), map(), any()) :: {:ok, map()}

Callback implementation for c::gen_event.code_change/3.

Link to this function handle_call(arg, state) View Source
handle_call({:configure, list()}, map()) :: {:ok, any(), map()}

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

Link to this function handle_event(arg1, state) View Source
handle_event(any(), map()) :: {:ok, map()}

Responsible logic for the actual logging. Checking if the level is acceptable to log. Generating the logging formats. Logging the resulting messages.

Parameters:

  • a tuple containing the data and metadata
  • state: e.g. %Logger.Backends.Youtrack{_}
Link to this function handle_info(arg1, state) View Source
handle_info(any(), map()) :: {:ok, map()}

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

Link to this function init(arg) View Source
init(any()) :: {:ok, map()} | {:error, :ignore}

Initial entry point on creating the gen event. Will create if the given config is valid.

Parameters

  • any tuple

Returns

  • tuple:

    • {:ok, %{_}}
    • {:error, :ignore}
Link to this function terminate(reason, state) View Source
terminate(any(), map()) :: :ok

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