Home >Backend Development >PHP Tutorial >php yii debugging sql log yii2.0 video tutorial yii2.0 yii official

php yii debugging sql log yii2.0 video tutorial yii2.0 yii official

WBOY
WBOYOriginal
2016-07-29 08:52:031014browse

' 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 execute

Log 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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn