{"repo":"adriankumpf/logger-telegram-backend","free":true,"listed":false,"github":"https://github.com/adriankumpf/logger-telegram-backend","clone":"git clone https://github.com/adriankumpf/logger-telegram-backend.git","description":"A logger backend for Telegram","language":"Elixir","stars":28,"topics":["elixir","telegram","logging","logger-backend","telegram-bot-api"],"license":"MIT","category":"chat-messaging","readme_excerpt":"LoggerTelegramBackend A logger backend for Telegram. Intended for low-volume notifications: a handful of alerts to a chat, not log shipping. See Caveats before reaching for it. Installation Add :logger telegram backend and :finch to your list of dependencies in mix.exs : Add the backend In your Application.start/2 callback, add the LoggerTelegramBackend : Add the following to your configuration: Configure the Telegram bot To create a Telegram bot, follow the instructions here and get the token for the bot. Then send a message to the bot and get your chat id : Caveats Messages are sent synchronously from the Logger event manager, so a slow or unreachable Telegram API blocks the process that called Logger.error/1 . Once Logger's :sync threshold is crossed the stall spreads to every process that logs, and once :discard threshold is crossed events are dropped for all backends attached to the event manager, not just this one. Telegram also rate limits to roughly one message per second per chat, and nothing here queues, retries or rate limits. Keep :level at :warning or :error , narrow further with :metadata filter , and set a timeout via :client request opts , since Finch defaults :request timeout to :infinity on HTTP/1. For high-throughput or delivery-critical logging, use a dedicated log aggregator. Configuration All options live under the LoggerTelegramBackend key of the :logger application. Since the token and chat id are secrets, read them at runtime from config/runtime.exs :","default_branch":null,"files":null,"tree":[],"storefront":"/r/adriankumpf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adriankumpf/logger-telegram-backend/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}