reasno/elk-logger

0.0.8 2018-06-14 03:58 UTC

README

This package is to be used in conjunction with laravel.

Installation

composer require reasno/elk-logger

Configuration

In your config/Logger.php, add a new channel:

return [
    //...
    'custom' => [
        'driver' => 'custom',
        'via' => Reasno\ElkLogger\ElkLogger::class,
        'level' => 'info',
        'password' => "XXXXXXX",
        'host' => '127.0.0.1',
        'port' => XXXX,
        'type' => 'some unique id'
    ],
    //...
];

Then configure your app to use this channel for logging.