All Projects → craigp → slack_logger_backend

craigp / slack_logger_backend

Licence: MIT License
An Elixir logger backend for posting errors to Slack.

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to slack logger backend

Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (+341.94%)
Mutual labels:  slack, logger
turnio
🤖 Bot to manage a queue of slack users in a channel
Stars: ✭ 11 (-64.52%)
Mutual labels:  slack
Coder
求职信息 组队刷题 经验交流
Stars: ✭ 22 (-29.03%)
Mutual labels:  slack
ben
Fast, native*, cross-platform Slack client, develop with React QML
Stars: ✭ 19 (-38.71%)
Mutual labels:  slack
slack-dark-theme
Apply dark theme to your slack with zero configuration
Stars: ✭ 15 (-51.61%)
Mutual labels:  slack
qml-logger
Plugin for file logging from QML
Stars: ✭ 17 (-45.16%)
Mutual labels:  logger
slack-texts
SMS notifications for Slack groups
Stars: ✭ 19 (-38.71%)
Mutual labels:  slack
ip-logger
📇 When someone clicks the link, you will receive their IP and other information via telegram.
Stars: ✭ 0 (-100%)
Mutual labels:  logger
iou-slack-bot
💸 IOU Slack Bot - Keep track of your debts with your peers.
Stars: ✭ 13 (-58.06%)
Mutual labels:  slack
slag
slack in the terminal using javascript
Stars: ✭ 16 (-48.39%)
Mutual labels:  slack
Perfect-Authentication
OAuth2 Implementations with Facebook, Google, LinkedIn, Slack, SalesForce and GitHub providers.
Stars: ✭ 14 (-54.84%)
Mutual labels:  slack
aws-iam-slack-notifer
Notifies slack when an IAM policy is created, changed or assigned to a role
Stars: ✭ 35 (+12.9%)
Mutual labels:  slack
Lighty
Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift.
Stars: ✭ 49 (+58.06%)
Mutual labels:  logger
SlackWebhooksGithubCrawler
Search for Slack Webhooks token publicly exposed on Github
Stars: ✭ 21 (-32.26%)
Mutual labels:  slack
slack-rota
日々のローテーションをお知らせする Slack アプリ
Stars: ✭ 14 (-54.84%)
Mutual labels:  slack
dienstplan
Slack bot app for duty rotations
Stars: ✭ 14 (-54.84%)
Mutual labels:  slack
dlog
A super simple logger for Go. Supports stderr, logfiles, syslog and windows event log.
Stars: ✭ 16 (-48.39%)
Mutual labels:  logger
polog
Логирование должно быть красивым
Stars: ✭ 26 (-16.13%)
Mutual labels:  logger
printer
A fancy logger yet lightweight, and configurable. 🖨
Stars: ✭ 65 (+109.68%)
Mutual labels:  logger
slack-emoji-for-techies
100s of Slack emoji, many tech-related
Stars: ✭ 123 (+296.77%)
Mutual labels:  slack

slack_logger_backend

Build Status Coverage Status hex.pm version hex.pm downloads Inline docs

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].