2017 © Pedro PelĂĄez
 

library gelf-support

A composer compliant package to support GELF logging within laravel/symfony projects

image

renepardon/gelf-support

A composer compliant package to support GELF logging within laravel/symfony projects

  • Monday, November 6, 2017
  • by renepardon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 350 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 22 % Grown

The README.md

GelfSupport

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

A composer compliant package to support GELF logging within laravel/symfony projects, (*2)

Structure

config/     Contains configuration files
src/        Contains the package source code
tests/      Contains PHPUnit tests
vendor/     Contains dependencies

We set the gelf-php facility so you can easily parse the INPUT of Graylog and pass it to your correct stream., (*3)

Install

Via Composer, (*4)

``` bash $ composer require renepardon/gelf-support:"dev-master", (*5)


### laravel Add the following line to the **config/app.php** file within **providers** section: ``` php \RenePardon\GelfSupport\GelfSupportServiceProvider::class,

Adjust the .env file to contain required constants which points to your Graylog2 server, (*6)

GRAYLOG_ENABLED=true
GRAYLOG_HOST=localhost
GRAYLOG_PORT=12201

You can of course adjust the configuration file directly so publish it to your appication with the following command:, (*7)

``` bash php artisan vendor:publish --provider="RenePardon\GelfSupport\GelfSupportServiceProvider" --tag="config", (*8)


### symfony Add the following block to your **config.yml**: ``` yaml gelf: graylog: enabled: true host: localhost port: 12201 services: gelf_support_handler: class: RenePardon\GelfSupport\GelfBundle\MonologHandler arguments: [@service_container]

config_prod.yml and config_dev.yml should contain this block:, (*9)

``` yaml monolog: handlers: gelf: type: service id: gelf_support_handler, (*10)


Register the _GelfSupport_ bundle within **app/AppKernel.php** - add the next line to **$bundles** array: ``` php new \RenePardon\GelfSupport\GelfBundle\GelfBundle(),

Change log

Please see CHANGELOG for more information on what has changed recently., (*11)

Testing

TO BE DONE - FEEL FREE TO WRITE SOME TESTS, (*12)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*13)

Security

If you discover any security related issues, please email rene.pardon@boonweb.de instead of using the issue tracker., (*14)

Credits

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

06/11 2017

dev-master

9999999-dev https://github.com/renepardon/gelf-support

A composer compliant package to support GELF logging within laravel/symfony projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel symfony renepardon gelf-support

06/11 2017

0.0.3

0.0.3.0 https://github.com/renepardon/gelf-support

A composer compliant package to support GELF logging within laravel/symfony projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel symfony renepardon gelf-support

06/11 2017

dev-develop

dev-develop https://github.com/renepardon/gelf-support

A composer compliant package to support GELF logging within laravel/symfony projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel symfony renepardon gelf-support

06/11 2017

0.0.2

0.0.2.0 https://github.com/renepardon/gelf-support

A composer compliant package to support GELF logging within laravel/symfony projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel symfony renepardon gelf-support

11/08 2017

0.0.1

0.0.1.0 https://github.com/renepardon/gelf-support

A composer compliant package to support GELF logging within laravel/symfony projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel symfony renepardon gelf-support