2017 © Pedro Peláez
 

library gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

image

practo/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  • Friday, July 17, 2015
  • by abhinavlal
  • Repository
  • 4 Watchers
  • 0 Stars
  • 17,312 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 62 Forks
  • 0 Open issues
  • 11 Versions
  • 6 % Grown

The README.md

gelf-php

Build Status Dependency Status Code Coverage Scrutinizer Quality Score SensioLabsInsight, (*1)

A php implementation to send log-files to a gelf compatible backend like Graylog2. This library conforms to the PSR standards in regards to structure (0), coding-style (1, 2) and logging (3)., (*2)

It's a loosely based on the original Graylog2 gelf-php and mlehner's fork., (*3)

Stable release and deprecation of the original graylog2/gelf-php

This implementation became the official PHP GELF library on 2013-12-19 and is now released as graylog2/gelf-php v1.0. The old library became deprecated at the same time and it's recommended to upgrade., (*4)

Since the deprecated library never got a stable release, we decided keep it available as v0.1. This means: If you have a project based on the deprecated library but no time to upgrade to version 1.0, we recommend to change your composer.json as following:, (*5)

    "require": {
       // ...
       "graylog2/gelf-php": "0.1.*"
       // ...
    }

After running an additional composer update everything should work as expected., (*6)

Usage

Add gelf-php to composer.json:, (*7)

"require": {
   // ...
   "graylog2/gelf-php": "~1.0"
   // ...
}

Reinstall dependencies: composer install, (*8)

Examples

For usage examples, go to /examples., (*9)

License

The library is licensed under the MIT license. For details check out the LICENSE file., (*10)

Development & Contributing

You are welcome to modify, extend and bugfix all you like. :-) In case you want to use the nifty PhpStorm-IDE, there is an OSS-license for this project, you can use. Just contact me @bzikarsky., (*11)

Tools

  1. composer, preferably a system-wide installation as composer
  2. PHPUnit
  3. Optional: PHP_CodeSniffer for PSR-X-compatibility checks

Steps

  1. Clone repository and cd into it: git clone git@github.com:bzikarsky/gelf-php && cd gelf-php
  2. Install dependencies: composer install --dev
  3. Run unit-tests: phpunit
  4. Check PSR compatibility: phpcs --standard=PSR src tests

Bitdeli Badge, (*12)

The Versions

17/07 2015

dev-master

9999999-dev

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

by Abhinav Lal

09/10 2014

1.0.5

1.0.5.0

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

by Abhinav Lal

02/06 2014

1.0.4

1.0.4.0

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

by Benjamin Zikarsky

01/03 2014

1.0.3

1.0.3.0

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

by Benjamin Zikarsky

26/02 2014

1.0.2

1.0.2.0

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

by Benjamin Zikarsky

25/02 2014

dev-issues/9-zero-validation-fail

dev-issues/9-zero-validation-fail

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Benjamin Zikarsky

20/02 2014

dev-issues/6-http-transport

dev-issues/6-http-transport

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Benjamin Zikarsky

23/01 2014

v1.0.1

1.0.1.0

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Benjamin Zikarsky

19/12 2013

v1.0.0

1.0.0.0

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Benjamin Zikarsky

19/12 2013

dev-deprecated

dev-deprecated http://github.com/Graylog2/gelf-php

PHP classes to send GELF (Graylog extended log format) messages

  Sources   Download

MIT

log logging

19/12 2013

v0.1.0

0.1.0.0 http://github.com/Graylog2/gelf-php

PHP classes to send GELF (Graylog extended log format) messages

  Sources   Download

MIT

log logging