Log handler that ships in gelf format
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gelfHandler-1.0.0.tar.gz
(2.6 kB
view details)
File details
Details for the file gelfHandler-1.0.0.tar.gz.
File metadata
- Download URL: gelfHandler-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1990a9cffd651f2419bc94232a7e55ecc5069e19db5b458ace914d255a4ebfcb
|
|
| MD5 |
14e0cecfe4cd5ac7641d0863c665d923
|
|
| BLAKE2b-256 |
f67808add6a1b1fe924e0e3b72ce7b8a48e1dcd558b3fc23f6c9a13e5b81b176
|