Logging
Logging is a topic that should arguably have been covered before this late stage in the application development. Informational, warning, and severe error messages are invaluable when it comes to troubleshooting software applications, most certainly those in a production environment being used by real users.
Yii provides a flexible and extensible logging feature. Messages logged can be classified according to log levels and message categories. Using level and category filters, selected messages can be further routed to different destinations, such as written to files on disc, sent to administrators as e-mails or displayed to browser windows.
Message logging
Our application has actually been logging many informational messages upon each request the entire time. When the initial application was created, it was configured to be in debug mode and, while in this mode, the Yii Framework itself logs information messages. We can't actually see these messages because, by default, they are being...