Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

This version
History Node

1.0.0

History Node

0.1.2

History Node

0.1.1

History Node

0.1

History Node

0.1C

History Node

0.1b

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
gelfHandler-1.0.0.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None Dec 21, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page