Skip to content
A GELF library for Graylog2
Latest commit 3bfe69f Jun 11, 2014 @h4cc h4cc Merge pull request #18 from seokoka/patch-1
Changed cast from int to float for message timestamp.


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.

Something went wrong with that request. Please try again.