Error.log Doesn't Log Errors At All

how come this configuration doesn’t log any errors at all inside my log folder


        'log' => array(

            'class' => 'CLogRouter',

            'routes' => array(

                array(

                    'class'=>'CFileLogRoute',

                    'levels'=>'error, warning, info',

                    'categories'=>'system.*',

                    'logPath'=> '/export/home/sasori/branch/logs/',

                    'logFile'=>'error.log',

                ),

                 array(

                     'class'=>'CWebLogRoute',

                     'levels'=>'info',

                     //'categories'=>'application.*',

 		    'showInFireBug'=>true

                 ),

            ),

OR THIS


        'log' => array(

            'class' => 'CLogRouter',

            'routes' => array(

                array(

                    'class'=>'CFileLogRoute',

                    'levels'=>'error, warning, info',

                    'categories'=>'system.*',//'application.*',

                    'logPath'=> '/export/home/sasori/branch/logs/',

                    'logFile'=>'error.log',

                )

            ),

I also changed the error.log file’s permission to 0777

is this line of code there in /index.php?

// remove the following lines when in production mode…

defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);

// specify how many levels of call stack should be shown in each log message…

defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3);

also in php.ini file error log setting needs to be enabled.

this has been set a long time ago…that won’t help either

What do you want to debug exactly ??

If it’s for PHP just watch your /var/log/your_http_server/error.log

If it’s for yii, defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true); is enough and when there is an error on code you’ll see a yellow page displayed on your browser showing where something is wrong.