Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvalitov/slack_logger

A simple Logger backend for sending logs to slack
https://github.com/mvalitov/slack_logger

elixir logger-backend slack

Last synced: 7 days ago
JSON representation

A simple Logger backend for sending logs to slack

Awesome Lists containing this project

README

        

# SlackLogger

**A simple Logger backend for sending logs to slack. Is based on the library [LoggerFileBackend](https://github.com/onkel-dirtus/logger_file_backend)**

## Installation

Add `slack_logger` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:slack_logger, "~> 0.2.0"}
]
end
```

Documentation [https://hexdocs.pm/slack_logger](https://hexdocs.pm/slack_logger).

## Usage

In `*.exs`:

```elixir
config :logger,
backends: [...
{SlackLogger, :error}]

config :logger, :error,
level: :error,
url: "https://hooks.slack.com/services/***"
```