Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (29 sloc) 1.3 KB

The wrapper to send log-message to a Graylog server using the UDP transport

Latest Stable Version License Build Status Coverage Status

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.

You can’t perform that action at this time.