Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/h3poteto/ex_slack_logger
A Slack logger backend for Elixir using :gen_event
https://github.com/h3poteto/ex_slack_logger
elixir genevent logger-backend slack
Last synced: 13 days ago
JSON representation
A Slack logger backend for Elixir using :gen_event
- Host: GitHub
- URL: https://github.com/h3poteto/ex_slack_logger
- Owner: h3poteto
- Created: 2019-10-04T02:17:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T05:38:02.000Z (over 3 years ago)
- Last Synced: 2024-10-27T00:04:31.078Z (2 months ago)
- Topics: elixir, genevent, logger-backend, slack
- Language: Elixir
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ExSlackLogger
[![Hex.pm](https://img.shields.io/hexpm/v/ex_slack_logger)](https://hex.pm/packages/ex_slack_logger)
[![Hex.pm](https://img.shields.io/hexpm/dt/ex_slack_logger)](https://hex.pm/packages/ex_slack_logger)
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)ExSlackLogger is a logger backend module for Slack.
## Installation
Add `ex_slack_logger` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ex_slack_logger, "~> 0.1.0"}
]
end
```## Usage
At frist, add ExSlackLogger as logger backend in your `config.exs`.```elixir
config :logger, backends: [:console, ExSlackLogger]
```Next, configure logger backend.
```elixir
config :logger, ExSlackLogger,
level: :error,
hook_url: {:system, "SLACK_WEBHOOK_URL"},
channel: "#your_slack_channel_name",
username: "slack_user_name"
```After that, you can receive application log in your slack channel.
## License
The software is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).