Hi all, whats the difference between Yii::log() and Yii::trace() in yii framework. I would like to know about debugg mode logging and production mode logging. Can we use same log method for production and debugg mode?


Trace is for debugging. It allows you seeing what happens in the framework and in the app. Works only in debug mode since it’s quite costy.