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)
| 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 |