egorspk / yii2-loganalyzer
Log analyzer widget for yii2
Installs: 27 218
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-11 02:22:51 UTC
README
Fork yii-loganalyzer for yii2
Installation
composer require egorspk/yii2-loganalyzer
'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'spk\yii2loganalyzer\LogAnalyzerFileTarget', 'levels' => ['error', 'warning'], ], ], ],
Widget Example
<?= \spk\yii2loganalyzer\LogAnalyzerWidget::widget([ 'log_file_path' => Yii::getAlias('@frontend') . '/runtime/logs/app.log', ]) ?>