Skip to main content

Simple Discord webhook logger

Project description

Discord webhook logging

Simple logging handler and formatter for sending larger logs to discord channels.

Usage

import logging
from discord_webhook_logging import DiscordWebhookHandler

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
handler = DiscordWebhookHandler(webhook_url='<your webhook url>')
logger.addHandler(handler)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord-webhook-logging-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

discord_webhook_logging-0.0.1-py3.8.egg (5.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page