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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pylogdc-0.1.3.tar.gz.

File metadata

  • Download URL: pylogdc-0.1.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pylogdc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 92e058649bf909a842933eb363d0f4b019e35fa2bda7044e0aa197927405f033
MD5 8f7983518aba244e2314d8cfcc2f3d33
BLAKE2b-256 aadb84c6474a98ea21d25c85ec3b44dc354c0a3072ab0c11c4ecfda115d04a98

See more details on using hashes here.

File details

Details for the file pylogdc-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pylogdc-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pylogdc-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65d415bfc7d723b9475f3c61b9c53cf863ac56a8699f7db1f6cac53c3f35a8b3
MD5 00e6455c701564a6f6710c558f339aa2
BLAKE2b-256 6d7ef86e673cff72184b392a677fb9a41e8b99fbfa0c0b797541f8e3e858f2a2

See more details on using hashes here.

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