Home >Backend Development >PHP Tutorial >php yii debugging sql log yii2.0 video tutorial yii2.0 yii official
' levels'=>'trace', //profile
'categories'=>'system.db.*', //'categories'=>'system.db.CDbCommand,system.caching.* ',), ), ),Note:If there is a die when recording the log, you must add
Jii::app()->end(); to executeLog levels are:
* trace: This is the level used in Yii::trace. It is used to track the execution flow of a program during development.
* info: This is used to record ordinary information.
* profile: This is a performance overview (profile). More detailed instructions will follow shortly.
* warning: This is used for warning information.
* error: This is used for fatal error information.
The above introduces the php yii debugging sql log, including yii and SQL content. I hope it will be helpful to friends who are interested in PHP tutorials.