LogForwarder

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

Configuration

Our config.exs would have an entry similar to this:

config :log_forwarder,
  config: [
      host: "localhost",
      port: 24224,
      prefix: "LogForwarder",
      retry_times: 10,
      attributes: ~w(level error ...)
    ]

Application will start LogForwader.

LogForwader supports the following configuration values:

How to use

defmodule SampleModule do
    import LogForwarder

    def sample_func() do
        # do something ...
        send_log("api_tag", :info, data)
    end
end

Todo