Skip to main content

AsyncGELF

Language grade: Python PyPI - Downloads PyPI

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

  • host Requaried | Graylog server address;
  • port Optional | Graylog input port (default: 12201);
  • gelf_version Optional | GELF spec version (default: 1.1)
  • level Optional | The level equal to the standard syslog levels (default: 1);
  • scheme Optional | HTTP Scheme for GELF HTTP input only (default: http);
  • tls Path to custom (self-signed) certificate in pem format for GELF HTTP input only (default: None)
  • compress Optional | Compress message before sending it to the server or not for GELF HTTP input only (default: false)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asyncgelf-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asyncgelf-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file asyncgelf-0.1.2.tar.gz.

File metadata

  • Download URL: asyncgelf-0.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for asyncgelf-0.1.2.tar.gz
Algorithm Hash digest
SHA256 97409b5ccf05814bd4170d33b0fd744b362f11ea1eaa5c7fcfa010b01371354b
MD5 ec0204ad9f7ba8dbfbdc4fd7ba9ed23e
BLAKE2b-256 f7187b63e8a325aa7c25df860bb1378e50c62390677f2863b04a41da0875f106

See more details on using hashes here.

File details

Details for the file asyncgelf-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: asyncgelf-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for asyncgelf-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d31b3c58a2d228c114c68b67666758c9a73b4890a0a44c581bc8ac3e2d97e43
MD5 684bd5a1ce1faeea204005517f6c15c6
BLAKE2b-256 5c53689df7ef63813f521c51d7d627557a0a6880438cbe0beba7e5f8ff159884

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.0

2 files

1.1.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.2.0

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

1 file

0.1.0

1 file

0.0.2

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page