{"id":18008893,"url":"https://github.com/azohra/quack","last_synced_at":"2025-03-26T13:31:40.705Z","repository":{"id":57538362,"uuid":"157763876","full_name":"azohra/quack","owner":"azohra","description":"An Elixir Logger backend for slack","archived":false,"fork":false,"pushed_at":"2018-12-13T21:12:49.000Z","size":283,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-21T22:21:47.236Z","etag":null,"topics":["backend","elixir","exporter","logger","slack"],"latest_commit_sha":null,"homepage":null,"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/azohra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-15T19:46:10.000Z","updated_at":"2023-12-18T04:34:12.000Z","dependencies_parsed_at":"2022-09-07T16:50:52.910Z","dependency_job_id":null,"html_url":"https://github.com/azohra/quack","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azohra%2Fquack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azohra%2Fquack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azohra%2Fquack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azohra%2Fquack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azohra","download_url":"https://codeload.github.com/azohra/quack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245662920,"owners_count":20652099,"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":["backend","elixir","exporter","logger","slack"],"created_at":"2024-10-30T02:07:48.387Z","updated_at":"2025-03-26T13:31:40.212Z","avatar_url":"https://github.com/azohra.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quack\n\n[![Hex pm](http://img.shields.io/hexpm/v/quack.svg?style=flat)](https://hex.pm/packages/quack)\n[![GitHub license](https://img.shields.io/github/license/azohra/Quack.svg)](https://github.com/azohra/Quack/blob/master/LICENSE.md)\n\nA simple, yet beautiful, Elixir Logger backend for Slack\n\n## Installation\n\nThe package can be installed by adding `quack` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:quack, \"~\u003e 0.1.1\"}\n  ]\nend\n```\n\nThen add Quack to your list of extra applications:\n\n```elixir\n  def application do\n    [\n      mod: {MyApplication, []},\n      extra_applications: [:logger, :quack]\n    ]\n  end\n```\n\n## Configuration\n\nConfigure the Slack incoming webhook:\n\n```elixir\n  config :quack, webhook_url: \"https://hooks.slack.com/services/....\"\n```\n\nConfigure your Logger application to use Quack as a backend:\n\n```elixir\n  config :logger, backends: [:console, Quack.Logger]\n```\n\nConfigure the minimum-level of logs you want exported to Slack:\n\n```elixir\n  # Options are [:debug, :info, :warn, :error]\n  config :quack, level: :debug\n```\n\nConfigure which metadata you want to report on:\n\n```elixir\n  # You can specify a list of containing these fields: \n  #   [\n  #     :application,\n  #     :module,\n  #     :function,\n  #     :file,\n  #     :line,\n  #     :pid,\n  #     :crash_reason,\n  #     :initial_call,\n  #     :registered_name\n  #   ]\n\n  config :quack, meta: [:file, :function, :line]\n\n  # Or you can specify absolutes such as :all, or :none\n  config :quack, meta: :none\n```\n\nThe complete configuration should look something like this:\n\n```elixir\n  config :quack,\n    level: :info,\n    meta: [:file, :function, :line],\n    webhook_url: \"https://hooks.slack.com/services/...\"\n\n  config :logger, backends: [:console, Quack.Logger]\n```\n\n## Examples\n\n\n![debug message](docs/debug.png)\n![info message](docs/info.png)\n![warning message](docs/warning.png)\n![error message](docs/error.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazohra%2Fquack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazohra%2Fquack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazohra%2Fquack/lists"}