2017 © Pedro Peláez
 

library gelf-php

Fork of gelf-php with PHP namespace support

image

mlehner/gelf-php

Fork of gelf-php with PHP namespace support

  • Wednesday, June 11, 2014
  • by mlehner
  • Repository
  • 0 Watchers
  • 0 Stars
  • 514,112 Installations
  • 4 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

mlehner/gelf-php

Build Status, (*1)

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

Status

This library is quite old and has just the single mentioned feature., (*3)

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

Installation

Simply require the package by its name with composer:, (*5)

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

Usage

Example:, (*6)

// Create a Message and set your logging information.
$message = new Message();
$message->setFullMessage('Your full log mesage');
$message->setHost('example.com');
$message->setLevel(3); // List of supported levels: http://en.wikipedia.org/wiki/Syslog#Severity_levels
$message->setShortMessage('Short message');
$message->setTimestamp(time());
$message->setVersion('1.2.3');
// The following values are deprecated and will be transferred as additionals.
$message->setFile('foo.php');
$message->setLine(42);
$message->setFacility('server42');

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

License

This bundle is licensed under MIT., (*7)

The Versions

11/06 2014

dev-master

9999999-dev

Fork of gelf-php with PHP namespace support

  Sources   Download

MIT

The Development Requires

by Matt Lehner

20/02 2014

1.0.x-dev

1.0.9999999.9999999-dev

Fork of gelf-php with PHP namespace support

  Sources   Download

MIT

The Development Requires

by Matt Lehner

20/02 2014

v1.0.1

1.0.1.0

Fork of gelf-php with PHP namespace support

  Sources   Download

MIT

The Development Requires

by Matt Lehner

20/02 2014

v1.1.0

1.1.0.0

Fork of gelf-php with PHP namespace support

  Sources   Download

MIT

The Development Requires

by Matt Lehner

17/04 2012

v1.0

1.0.0.0

Fork of gelf-php with PHP namespace support

  Sources   Download

by Matt Lehner