elementary / graylog-udp
The wrapper to send log-message to a Graylog server using the UDP transport
1.0.2
2018-03-18 11:41 UTC
Requires
- php: >=5.6
- elementary/logger-trait: ^1.0
- graylog2/gelf-php: ^1.5
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5
- satooshi/php-coveralls: ^2.0
This package is not auto-updated.
Last update: 2024-12-22 05:39:50 UTC
README
Installation
The preferred way to install this extension is through composer and then run
composer require elementary/graylog-udp
Usage
use elementary\logger\graylog\udp\GraylogUdp; $ex = new GraylogUdp('TestFacility', 'TestHost', 12201); $ex->info('TestMessage', ['clientIp' => '127.0.0.1']);
Testing and Code coverage
Unit Tests are located in tests
directory.
You can run your tests and collect coverage with the following command:
vendor/bin/phpunit
Result of coverage will be output into the tests/output
directory.
License
For license information check the LICENSE-file.