Skip to main content

gelfHandler is a basic logging handler for sending to a graylog2 instance via UDP or TCP

Basic usage

Usage is pretty much like any handler:

from gelfHandler import GelfHandler
gHandler = GelfHandler(
    host='mylogserver.example.com',
    port=12202,
    protocol='UDP'
)
logger.addHandler(gHandler)

Support for additional fields is available if you send a dict using the extra keyword that begins with gelfProps:

logger.warn('DANGER DANGER',extra={'gelf_props':{'name':'W. Robinsson', 'planet':'unknown'}})

More info can be found on the github page.

Release files for gelfHandler 1.0.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 gelfHandler 1.0.0
File Size Uploaded
gelfHandler-1.0.0.tar.gz 2.6 kB Details

Release files / gelfHandler-1.0.0.tar.gz

Download URL gelfHandler-1.0.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1990a9cffd651f2419bc94232a7e55ecc5069e19db5b458ace914d255a4ebfcb
BLAKE2b-256 checksum
How to use checksums
f67808add6a1b1fe924e0e3b72ce7b8a48e1dcd558b3fc23f6c9a13e5b81b176
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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