aiohandler
aiohandler = aiohttp http handler
aiohandler is a logging extension module.
By using this module, logs can be sent by webhook.
installing
Install and update using pip:
pip install aiohandler
A simple example.
Enter the parameters required for sending the webhook in the body.
import asyncio
import logging
import aiohandler
WEBHOOK_URL = "Your webhook url"
logger = logging.getLogger()
handler = aiohandler.AioHTTPHandler(WEBHOOK_URL, method="POST", body="content")
logger.addHandler(handler)
loop = asyncio.get_event_loop()
async def main():
print("hello!")
logging.info('info')
logging.debug('debug')
logging.error('error')
await asyncio.sleep(1)
logging.warning('warning')
logging.critical('critical')
print("hello world!")
if __name__ == "__main__":
loop.create_task(main())
loop.run_forever()
Thank you to everyone who Helped me (#^^#)
Metadata
Release files for aiohandler 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiohandler-0.1.0.tar.gz | 2.4 kB | Without provenance | Details for aiohandler-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiohandler-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aiohandler-0.1.0-py3-none-any.whl |
Total release size: 5.8 kB
Release files / aiohandler-0.1.0.tar.gz
| Download URL | aiohandler-0.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a35109ef666190915f32c52c45fb1de1e261defa03b013f60202d6783c3f7b6d
|
|
BLAKE2b-256 checksum How to use checksums |
cbc6dbefadbecef67d429aed9732433bdae9be3eb5ad531b97f7763328908c99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
|
Release files / aiohandler-0.1.0-py3-none-any.whl
| Download URL | aiohandler-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25b38dd59ded469f38e7657ad0a02a51d7321c6e6a68b8439e5930e3fda300a1
|
|
BLAKE2b-256 checksum How to use checksums |
3a10d3f011e57b4974a539906b4cad6645d3625da7583d445b842ca16dd5823d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
|
Security for aiohandler 0.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.