PHP code example of tutu-ru / lib-logger-elk
1. Go to this page and download the library: Download tutu-ru/lib-logger-elk 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/ */
tutu-ru / lib-logger-elk example snippets
use TutuRu\LoggerElk\ElkLoggerFactory;
$loggerFactory = new ElkLoggerFactory();
$logger = $loggerFactory->getNativeErrorLogger($logName);
use TutuRu\LoggerElk\ElkLoggerFactory;
$loggerFactory = new ElkLoggerFactory();
$logger = $loggerFactory->getRedisLogger(
$logName,
$config,
$redisConnectionManager,
$requestMetadataOrNull,
$statsdExporterClientOrNull
);