Yii LogAnalyzer - Log file analyzer for Yii (application.log)
Requirements ¶
Yii 1.1 or above
Usage ¶
Print out the widget in the view:
<?php
$this->widget('ext.loganalyzer.LogAnalyzerWidget', array(
'filters' => array('Text filtering','One more'),
'title' => 'Title of the widget' ,
// 'log_file_path' => 'Absolute path of the Log File',
));
?>
In addition:
Also in the expansion is extended to marshurt logs, which adds to the message logger ip client. Connect as follows:
<?php
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
....
array(
'class'=>'ext.loganalyzer.LALogRoute',
'levels'=>'info, error, warning',
...
),
...
),
),
?>
Features: ¶
- Easy connection to the project
- Output messages from the log file
- Filter log messages (Remove unwanted messages from issuance)
- Filter log output (output only error, warning or info)
- Cleaning the log file
- Multilingual (russian, english and Portuguese)
Thanx! Good job!
Be carefully with LogAnalyzerWidget->showError and use better a saver HTML with
return CHtml::encode($text);
Otherwise you like me today may wonder, why foreign scripts are called, which are listed in the buggy "Stack trace" of the application log.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.