Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/furmanOFF/lager_slack
Simple Slack backend for lager
https://github.com/furmanOFF/lager_slack
erlang lager slack
Last synced: 2 months ago
JSON representation
Simple Slack backend for lager
- Host: GitHub
- URL: https://github.com/furmanOFF/lager_slack
- Owner: furmanOFF
- License: mit
- Created: 2018-03-18T23:38:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T16:06:54.000Z (over 6 years ago)
- Last Synced: 2024-04-22T13:34:07.541Z (10 months ago)
- Topics: erlang, lager, slack
- Language: Erlang
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-erlang - lager_slack - Simple Slack backend for lager. (Logging)
README
# lager_slack
Simple [Slack](https://slack.com) backend for [lager](https://github.com/erlang-lager/lager)## Format
lager_slack buffers incoming logs and sends them in packs of 20 logs per Slack message (as attachments).## Configuration
To use this backend you must provide it with a [Slack Webhook](https://api.slack.com/incoming-webhooks) link to specific channel.```erlang
{lager, [
{handlers, [
{lager_slack_backend, [
{uri, "https://hooks.slack.com/..."}, % (required) Webhook URI
{metadata, [pid, module]}, % Lager metadata appended to message (default: module)
{sign, "MyApp"}, % Message sign to identify your reports (appears in message footer)
{level, error}, % Log level (default: critical)
{timeout, 5000}, % (optional) Slack submit timeout in ms (default: 5000)
{threshold, 20} % (optional) Max message attachement count (default/recommended: 20)
]}
]}
]}
```