PHP code example of everon / logger-redis

1. Go to this page and download the library: Download everon/logger-redis 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/ */

    

everon / logger-redis example snippets


    'pluginClass' => \Everon\LoggerRedis\Plugin\Redis\RedisLoggerPlugin::class,
    'pluginFactoryClass' => null,
    'logLevel' => \Monolog\Level::Debug,
    'shouldBubble' => true,
    'key' => null,
    'capSize' => 0,
    'redisConnection' => \Everon\Shared\LoggerRedis\Configurator\Plugin\RedisConnectionConfigurator,
    

    'host' => null,
    'port' => 6379,
    'timeout' => 0.0,
    'password' => null,
    'persistentId' => null,
    'retryInterval' => 0,
    'readTimeout' => 0.0,
    

    use Everon\Shared\Logger\Configurator\Plugin\LoggerConfigurator;
    use Everon\Shared\LoggerRedis\Configurator\Plugin\RedisLoggerPluginConfigurator;
    use Everon\Logger\EveronLoggerFacade;
  
    $redisPluginConfigurator = (new RedisLoggerPluginConfigurator())
      ->setLogLevel(\Monolog\Level::Info)
      ->setKey('foo-bar-queue');
  
    $redisPluginConfigurator->>info('lorem ipsum');