Skip to main content

Python package for logging actions to Discord servers using webhooks.

Project description

PyLogDc

PyLogDc is Python package, you can log actions of your code / alert to your Discord server using webhook. You can use color that you want (using HEX code) or use some of prepared colors.

Prepared colors

Success = #5cb85c Info = #5bc0de Warning = #f0ad4e Danger = #d9534f

Install

For install, run this command in your console / powershell

pip install pylogdc

Usage

from pylogdc import log_this
webhookURL = "https://discord.com/api/webhooks/......." # Replace with your actual Discord webhook URL
log_this('Test Header', 'Test message', 'info', webhookURL) # Without footer
log_this('Test Header', 'Test message', 'info', webhookURL, "Test Footer") # With footer

Remember to replace webhookURL with your actual Discord webhook URL.

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

pylogdc-0.1.3.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pylogdc-0.1.3-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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