Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reasno/elklogger

ELK logger for laravel 5
https://github.com/reasno/elklogger

elk-stack laravel

Last synced: 12 days ago
JSON representation

ELK logger for laravel 5

Awesome Lists containing this project

README

        

# ElkLogger
This package is to be used in conjunction with laravel.

## Installation

```bash
composer require reasno/elk-logger
```

## Configuration
In your config/Logger.php, add a new channel:
```php
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.