AsyncGELF
Async python logging handlers that send messages in the Graylog Extended Log Format (GELF).
List of ready to run GELF handlers
- TCP (without TLS);
- HTTP;
Get AsyncGELF
pip install asyncgelf
Usage
GELF TCP
import asyncio
import asyncgelf
async def main(message):
handler = asyncgelf.GelfTcp(
host='127.0.0.1',
)
await handler.tcp_handler(message)
asyncio.run(main(message))
GELF HTTP
import asyncio
import asyncgelf
async def main(message):
handler = asyncgelf.GelfHttp(
host='127.0.0.1',
)
await handler.http_handler(message)
asyncio.run(main(message))
Available params
hostRequaried | Graylog server address;portOptional | Graylog input port (default: 12201);gelf_versionOptional | GELF spec version (default: 1.1)levelOptional | The level equal to the standard syslog levels (default: 1);schemeOptional | HTTP Scheme for GELF HTTP input only (default: http);tlsPath to custom (self-signed) certificate in pem format for GELF HTTP input only (default: None)compressOptional | Compress message before sending it to the server or not for GELF HTTP input only (default: false)
Metadata
Release files for asyncgelf 0.1.2
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 |
|---|---|---|---|---|
| asyncgelf-0.1.2.tar.gz | 3.9 kB | Without provenance | Details for asyncgelf-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asyncgelf-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for asyncgelf-0.1.2-py3-none-any.whl |
Total release size: 8.3 kB
Release files / asyncgelf-0.1.2.tar.gz
| Download URL | asyncgelf-0.1.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97409b5ccf05814bd4170d33b0fd744b362f11ea1eaa5c7fcfa010b01371354b
|
|
BLAKE2b-256 checksum How to use checksums |
f7187b63e8a325aa7c25df860bb1378e50c62390677f2863b04a41da0875f106
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / asyncgelf-0.1.2-py3-none-any.whl
| Download URL | asyncgelf-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d31b3c58a2d228c114c68b67666758c9a73b4890a0a44c581bc8ac3e2d97e43
|
|
BLAKE2b-256 checksum How to use checksums |
5c53689df7ef63813f521c51d7d627557a0a6880438cbe0beba7e5f8ff159884
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for asyncgelf 0.1.2
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.