Skip to main content

Logging bundle to send logs using GELF

Project description

Latest Version Latest version Documentation Status

A python logging bundle to send logs using GELF. This is a rewrote of Djehouty


First, install logging-gelf using pip:

pip install -U logging-gelf

The following example shows how to send log in Graylog TCP input

import logging
from logging_gelf.formatters import GELFFormatter
from logging_gelf.handlers import GELFTCPSocketHandler

logger = logging.getLogger("gelf")

handler = GELFTCPSocketHandler(host="", port=12201)
logger.debug("hello !")


Logging adapter, extra, custom schema and many other stuff are available in the full documentation available at .


  • Python >= 3.3


Apache License 2.0

Project details

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
logging-gelf-0.0.11.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

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