PHP code example of egorspk / yii2-loganalyzer
1. Go to this page and download the library: Download egorspk/yii2-loganalyzer 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/ */
egorspk / yii2-loganalyzer example snippets
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'spk\yii2loganalyzer\LogAnalyzerFileTarget',
'levels' => ['error', 'warning'],
],
],
],
<?= \spk\yii2loganalyzer\LogAnalyzerWidget::widget([
'log_file_path' => Yii::getAlias('@frontend') . '/runtime/logs/app.log',
])