PHP code example of ydalbj / monolog-elasticsearch-logger
1. Go to this page and download the library: Download ydalbj/monolog-elasticsearch-logger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ydalbj / monolog-elasticsearch-logger example snippets
'elasticsearch' => [
'driver' => 'custom',
'via' => \Wobatu\Logger\ElasticsearchLogger::class,
'level' => 'debug',
'connection' => [
'host' => 'localhost',
'port' => 9200,
],
'index' => 'monolog',
'days' => 7,
// 'tags' => ['58cmd'],
],