This package is abandoned and no longer maintained. The author suggests using the graylog2/gelf-php package instead.

Fork of gelf-php with PHP namespace support

v1.1.0 2014-02-20 17:57 UTC

This package is not auto-updated.

Last update: 2019-02-20 17:13:09 UTC


Build Status

This library is abled to send GELF v1.1 Messages to compatible servers like a Graylog2 Server in version v0.20.


This library is quite old and has just the single mentioned feature.

Further development and new features are not desired in favor of this newer fork bzikarsky/gelf-php.


Simply require the package by its name with composer:

$ php composer.phar require mlehner/gelf-php "~1.1.0"



// Create a Message and set your logging information.
$message = new Message();
$message->setFullMessage('Your full log mesage');
$message->setLevel(3); // List of supported levels:
$message->setShortMessage('Short message');
// The following values are deprecated and will be transferred as additionals.

// Create a Publisher and send the message to your GELF server.
// Beware: Hostnames need a DNS lookup, which might be slow!
$publisher = new MessagePublisher('');


This bundle is licensed under MIT.