I forgotten to specify as ‘safe’ a new field I added to a table/model. So my app cannot update a record because unable to set an unsafe attribute. This is an “application” category error of severity “warning”.
In test, I got these errors populated, but in production no !
I already checked that runtime folder is writable and it is, also because other log files (for other categories) are rightly written in this directory.
This is the configuration for log routes, for both test and production envs.
'log'=>array(
'class'=>'CLogRouter',
'routes'=> $environment["log_routes"],
),
Where…
'log_routes'=>array(
array(
'class' =>'CFileLogRoute',
'levels' =>'error, warning',
'logFile' => 'application.log',
'categories' => 'application',
),
...
Also, this is my production config
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',1);
But the test config is
ini_set("display_errors","on");
ini_set("error_reporting",E_ALL);
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',2);
Please, can you suggest me some checks to debug why it’s not written my application.log file?