PHP code example of jacky / yii2-redis-log
1. Go to this page and download the library: Download jacky/yii2-redis-log 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/ */
jacky / yii2-redis-log example snippets
return [
//....
'components' => [
'log' => [
'targets' => [
'redis' => [
'class' => 'jc\yii\redis\RedisTarget',
'redis' => 'redis',
'levels' => ['trace', 'info'],
'categories' => ['yii\*'],
]
]
],
]
];