slack_logger_backend v0.1.0 SlackLoggerBackend

A logger backend for posting errors to Slack.

Usage

First, add the client to your mix.exs dependencies:

def deps do
  [{:slack_logger_backend, "~> 0.1"}]
end

Then run $ mix do deps.get, compile to download and compile your dependencies.

Finally, add the :slack_logger_backend application as your list of applications in mix.exs:

def application do
  [applications: [:logger, :slack_logger_backend]]
end

You’ll need to create a custom incoming webhook URL for your Slack team. Check the config/dev.exs file for a configuration example. You can also put the webhook URL in the SLACK_LOGGER_WEBHOOK_URL environment variable if you prefer.