{"id":13508506,"url":"https://github.com/craigp/slack_logger_backend","last_synced_at":"2025-04-09T22:51:57.446Z","repository":{"id":44730115,"uuid":"52953790","full_name":"craigp/slack_logger_backend","owner":"craigp","description":"An Elixir logger backend for posting errors to Slack.","archived":false,"fork":false,"pushed_at":"2022-09-06T03:27:54.000Z","size":39,"stargazers_count":33,"open_issues_count":3,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T22:51:51.239Z","etag":null,"topics":["elixir","logger","slack"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craigp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-02T10:18:33.000Z","updated_at":"2023-06-01T01:18:23.000Z","dependencies_parsed_at":"2022-07-20T15:18:10.902Z","dependency_job_id":null,"html_url":"https://github.com/craigp/slack_logger_backend","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigp%2Fslack_logger_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigp%2Fslack_logger_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigp%2Fslack_logger_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigp%2Fslack_logger_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craigp","download_url":"https://codeload.github.com/craigp/slack_logger_backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125643,"owners_count":21051766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","logger","slack"],"created_at":"2024-08-01T02:00:54.087Z","updated_at":"2025-04-09T22:51:57.417Z","avatar_url":"https://github.com/craigp.png","language":"Elixir","funding_links":[],"categories":["Logging"],"sub_categories":[],"readme":"slack_logger_backend\n====================\n[![Build Status](https://secure.travis-ci.org/craigp/slack_logger_backend.png?branch=master \"Build Status\")](http://travis-ci.org/craigp/slack_logger_backend)\n[![Coverage Status](https://coveralls.io/repos/craigp/slack_logger_backend/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/craigp/slack_logger_backend?branch=master)\n[![hex.pm version](https://img.shields.io/hexpm/v/slack_logger_backend.svg)](https://hex.pm/packages/slack_logger_backend)\n[![hex.pm downloads](https://img.shields.io/hexpm/dt/slack_logger_backend.svg)](https://hex.pm/packages/slack_logger_backend)\n[![Inline docs](http://inch-ci.org/github/craigp/slack_logger_backend.svg?branch=master\u0026style=flat)](http://inch-ci.org/github/craigp/slack_logger_backend)\n\nA logger backend for posting errors to Slack.\n\nYou can find the hex package [here](https://hex.pm/packages/slack_logger_backend), and the docs [here](http://hexdocs.pm/slack_logger_backend).\n\n## Usage\n\nFirst, add the client to your `mix.exs` dependencies:\n\n```elixir\ndef deps do\n  [{:slack_logger_backend, \"~\u003e 0.0.1\"}]\nend\n```\n\nThen run `$ mix do deps.get, compile` to download and compile your dependencies.\n\nAdd the `:slack_logger_backend` application as your list of applications in `mix.exs`:\n\n```elixir\ndef application do\n  [applications: [:logger, :slack_logger_backend]]\nend\n```\n\nFinally, add `SlackLoggerBackend.Logger` to your list of logging backends in your app's config:\n\n```elixir\nconfig :logger, backends: [SlackLoggerBackend.Logger, :console]\n```\n\nYou can set the log levels you want posted to slack in the config:\n\n```elixir\nconfig SlackLoggerBackend, :levels, [:debug, :info, :warn, :error]\n```\n\nAlternatively, do both in one step:\n\n```elixir\nconfig :logger, backends: [{SlackLoggerBackend.Logger, :error}]\nconfig :logger, backends: [{SlackLoggerBackend.Logger, [:info, error]}]\n```\n\nYou'll need to create a custom incoming webhook URL for your Slack team. You can either configure the webhook\nin your config:\n\n```elixir\nconfig SlackLoggerBackend, :slack, [url: \"http://example.com\"]\n```\n\n... or you can put the webhook URL in the `SLACK_LOGGER_WEBHOOK_URL` environment variable if you prefer. If\nyou have both the environment variable will be preferred.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigp%2Fslack_logger_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraigp%2Fslack_logger_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigp%2Fslack_logger_backend/lists"}