slack_logger_backend alternatives and similar packages
Based on the "Logging" category.
Alternatively, view slack_logger_backend alternatives based on common mentions on social networks and blogs.
-
timber
Structured logging platform; turns raw text logs into rich structured events. -
logster
Easily parsable, one-line logging for Phoenix and Plug applications, inspired by Lograge. -
syslog
Erlang port driver for interacting with syslog via syslog(3). -
logger_logstash_backend
A backend for the Elixir Logger that will send logs to the Logstash UDP input. -
metrix
Log custom app metrics to stdout for use by Librato and other downstream processors. -
gelf_logger
A Logger backend that will generate Graylog Extended Log Format (GELF) messages. -
lager_logger
A lager backend that forwards all log messages to Elixir's Logger. -
json_logger
JSON Logger is a logger backend that outputs elixir logs in JSON format. -
logfmt
Logfmt is a module for encoding and decoding logfmt-style log lines. -
mstore
MStore is a experimental metric store build in erlang, the primary functions are open, new, get and put. -
youtrack_logger_backend
A logger backend that will post messages to YouTrack (an issue tracker made by JetBrains). -
quiet_logger
A simple plug to suppress health check logging (e.g.: when using Kubernetes).
Scout APM - Leading-edge performance monitoring starting at $39/month
Do you think we are missing an alternative of slack_logger_backend or a related project?
README
slack_logger_backend
A logger backend for posting errors to Slack.
You can find the hex package here, and the docs here.
Usage
First, add the client to your mix.exs
dependencies:
def deps do
[{:slack_logger_backend, "~> 0.0.1"}]
end
Then run $ mix do deps.get, compile
to download and compile your dependencies.
Add the :slack_logger_backend
application as your list of applications in mix.exs
:
def application do
[applications: [:logger, :slack_logger_backend]]
end
Finally, add SlackLoggerBackend.Logger
to your list of logging backends in your app's config:
config :logger, backends: [SlackLoggerBackend.Logger, :console]
You can set the log levels you want posted to slack in the config:
config SlackLoggerBackend, :levels, [:debug, :info, :warn, :error]
Alternatively, do both in one step:
config :logger, backends: [{SlackLoggerBackend.Logger, :error}]
config :logger, backends: [{SlackLoggerBackend.Logger, [:info, error]}]
You'll need to create a custom incoming webhook URL for your Slack team. You can either configure the webhook in your config:
config SlackLoggerBackend, :slack, [url: "http://example.com"]
... or you can put the webhook URL in the SLACK_LOGGER_WEBHOOK_URL
environment variable if you prefer. If
you have both the environment variable will be preferred.