Skip to main content

Python package for logging actions to Discord servers using webhooks.

Project description

PyLogDc

PyLogDc je Python balíček, který umožňuje logovat zprávy do Discord serveru pomocí webhooků s podporou barev. 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.logthis 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.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylogdc-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a57bd86fbc0c7194f89c4068861620eed4cafc7126425d66376f14aad06567ed
MD5 a0573d17006c591ac3d169cf50ea118c
BLAKE2b-256 2f772723c0add844f8bfa769e167bdc0bf45e242d97ee2de1dfdaae53314271e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylogdc-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff1fa7994d2b813cac7e628ad58adb8902569075acb0af8c49869148122d1c1f
MD5 be383bdf13479076fe732b795ed6f491
BLAKE2b-256 0979c5316de4615591e7be9edc74c0bb21a56c86da2839e1e07230f69d3baec0

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