Logs Not Displaying On Page With Default Settings

Hi, for some reason CWebLogRoute logs just don’t want to be displayed on one particular project I’m working on. I’ve compared the configuration to another project with working logs, and all the configuration values are identical. After a lot of Googling the only clue I’ve found is that I might be missing app->die() somewhere, but I have no clue as to where should be, if it is indeed missing.

Below is my log config - it’s the default, but it just doesn’t want to display!






            'levels'=>'error, warning',







If anyone needs more information to help me, I am happy to give you any details you require.

Thanks in advance for any advice you can offer!

plz check your php.ini file, may be the error displaying is off there

Thanks for the suggestion - display_errors and logging is on. As I mentioned, the CWebLogRoute is working fine for other projects (they are on the same server, under the same account however different subdomains).

make sure you have YII_DEBUG set to true or uncommented in your index

// remove the following lines when in production mode

defined('YII_DEBUG') or define('YII_DEBUG',true);

that could cause this sometimes

And send me back to Yii 101! :unsure: All those times I was comparing the indexes between sites… I can’t believe I looked past those commented lines. :-[

Thanks alirz23, problem solved.

np glad could help