Skip to main content

discord_logging

discord_logging is a logging extension module.
By using this module, logs can be sent by webhook.

installing

Install and update using pip:

pip install discord_logging

A simple example.

import discord

import logging
import discord_logging

logger = logging.getLogger()

WEBHOOK_URL = "Your webhook url"
handler = discord_logging.Discord_Handler(WEBHOOK_URL)

logger.addHandler(handler)

client = discord.Client()


@client.event
async def on_ready():
    print('login!(\'◇\')ゞ')


@client.event
async def on_message(message):

    if message.author.bot:
        return
    if message.content == '/hello':
        await message.channel.send('hello')

client.run('THi5IsDuMMyaCCesSTOK3nQ4.Cl2FMQ.ThIsi5DUMMyAcc3s5ToKen7kKWs')

Metadata

Release files for discord-logging 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord-logging 1.0
File Size Uploaded Provenance Actions
discord_logging-1.0.tar.gz 2.3 kB Without provenance Details for discord_logging-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discord-logging 1.0
File Interpreter ABI Platform Actions
discord_logging-1.0-py3-none-any.whl Python 3 none any Details for discord_logging-1.0-py3-none-any.whl

Total release size: 4.8 kB

Release files / discord_logging-1.0.tar.gz

Download URL discord_logging-1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
85812a7014665a2ad1252b27832e74d4cfc9c3a540542316223389fbd7df6694
BLAKE2b-256 checksum
How to use checksums
ce561015ee73d55002d4bff2b49e5adcd90e10e43d44b54f75c3b70d0627effe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / discord_logging-1.0-py3-none-any.whl

Download URL discord_logging-1.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e59f663f4cb8d0535dfe5905f8dcb8d1c1e44c7ee90a5203d42bad43a31b105
BLAKE2b-256 checksum
How to use checksums
6fde18202fb2d1892abb698a70ea7fe2cc583a4e7b67357e0bef613d7b683785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Security for discord-logging 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page