python-discord-webhook icon indicating copy to clipboard operation
python-discord-webhook copied to clipboard

Python logging handler for Discord

Open miohtama opened this issue 3 years ago • 0 comments

Hi,

I have a written new Python package that provides a Python logging handler for Discord.

It is good for

  • Get notified on server-side errors
  • Follow your batch job processes easily
  • Good for businesses and communities that have their messaging set up in Discord
  • Share logs with non-technical colleagues

Some features

  • Minimum or no changes to a Python application needed
  • Optional colour coding of messages using Discord embeds
  • Optional emoticons on messages using Unicode
  • Discord rate-limiting friendly for a burst of logs
  • Documentation
  • Special handling for long log messages like tracebacks to deal with Discord's 2000 character max message length

The package is mean and lean. Unlike discord.py, the used API subset is much smaller - only webhook.

Internally, the logger uses python-discord-webhook. Would there be any chance to include a link to python-logging-discord-handler in python-discord-webhook documentation? This would improve the discoverability of the logging handler for those who need to integrate Discord logging to their application.

miohtama avatar Apr 03 '22 10:04 miohtama