LogForwarder v0.2.1 LogForwarder View Source

A simple LogForwarder backend which run as a supervisor to forward logs to another server.

Link to this section Summary

Link to this section Functions

Link to this function send_log(tag, level, data) View Source
send_log(tag :: binary(), level :: Atom.t(), data :: Map.t()) ::
  {:ok, pid()} | nil

Send log

Parameters:

ParamDescriptionExample
tagTag of logAPI, Auth, …
levelLog level:info or :error
dataLog data%{user_id: 123, function_name: 'Client.sample_func', ...}

Examples

iex> LogForwarder.send_log('API', :info, data)