#Error log capture
"Error log capture" capture errors from logs, is an extension of Yii2 Audit.
Download using composer by running the following command:
composer require itkld/error-log-capture:"dev-main"
Add Audit to your configuration array:
<?php
$config = [
'modules' => [
'audit' => [
...
'panelsMerge' => [
'audit/log' => [
'class' => 'kld\error_log_capture\LogPanel'
'isCaptureAll' => true,
'keywords' => [
'error',
'exception',
'错误',
'异常',
],
/*
'allowLevels' => [
LogLevel::WARNING,
LogLevel::ERROR,
]
*/
],
]
],
],
];