{"repo":"EthanC/Loguru-Discord","free":true,"listed":false,"github":"https://github.com/EthanC/Loguru-Discord","clone":"git clone https://github.com/EthanC/Loguru-Discord.git","description":"Lightweight sink for Loguru that sends logs to Discord via webhook.","language":"Python","stars":11,"topics":["discord","log","logger","logging","loguru","notification","notifier","notify","sink","traceback"],"license":"AGPL-3.0","category":"chat-messaging","readme_excerpt":"Loguru-Discord Loguru-Discord is a lightweight sink for Loguru that forwards logs to Discord via the Webhook API. Features - Plug-and-play adoption with your existing logging structure - Highly configurable presentation, from usernames and avatars to rich formatting and truncation - Fully type-hinted for an excellent developer experience - Native and performant Webhook API interaction powered by Clyde - Opt-in interception of standard library logging events, unified under Loguru Getting Started Installation [!IMPORTANT] Loguru-Discord requires Python 3.11 or later. Install with uv (recommended): Alternatively, install with pip: Handler You can integrate Loguru-Discord in just two lines: All configuration is handled on DiscordSink via optional keyword arguments. Argument Description Default ----------------------- ---------------------------------------------------------------------- -------------------------------- webhook url Discord Webhook URL to forward log events to. N/A (Required) username String to use for the Webhook username. None (Determined by Discord) avatar url Image URL to use for the Webhook avatar. None (Determined by Discord) rich Toggle whether to use Discord Components. False intercept Toggle whether to intercept standard library logging. False intercept level map Map custom log levels to Loguru log levels. None suppress List of Exception types to not forward to Discord. None Example Here’s a complete, end-to-end example using Loguru-Discord: Releases Logur","default_branch":null,"files":null,"tree":[],"storefront":"/r/EthanC","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EthanC/Loguru-Discord/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."}