https://github.com/therealowenrees/logger_webhook_backend
A backend for Elixir's Logger, allowing the sending of logs direct to webhooks.
https://github.com/therealowenrees/logger_webhook_backend
elixir error-handling logger
Last synced: 5 months ago
JSON representation
A backend for Elixir's Logger, allowing the sending of logs direct to webhooks.
- Host: GitHub
- URL: https://github.com/therealowenrees/logger_webhook_backend
- Owner: TheRealOwenRees
- Created: 2024-12-22T21:38:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-16T09:10:42.000Z (over 1 year ago)
- Last Synced: 2025-08-01T03:58:37.870Z (11 months ago)
- Topics: elixir, error-handling, logger
- Language: Elixir
- Homepage: https://hex.pm/packages/logger_webhook_backend
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Logger Webhook Backend
A Logger backend that sends logs to a webhook. Currently only tested with Discord.
## Installation
The package can be installed by adding `logger_webhook_backend` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:logger_webhook_backend, "~> 0.0.2"}
]
end
```
## Configuration
`LoggerWebhookBackend` can be configured in your `config.exs` file:
```elixir
config :logger,
backends: [{LoggerWebhookBackend, :webhook_logger}]
config :logger, :webhook_logger, level: :error
```
Environment variables can be set in your `runtime.exs` file:
```elixir
config :logger, :webhook_logger,
webhook_url: System.get_env("WEBHOOK_URL")
```