i want to create new log file for with my custom error or custom messages but i am not able to do that. even i have made the changes in main.php file as well.
array(
'class'=>'CFileLogRoute',
'levels'=>'mailerror',
'categories'=>"system.*",
'logFile'=>'mailError.log'.date('d-m-y s'),
),
array(
'class'=>'CFileLogRoute',
'levels'=>'error, info',
),
and after this when i am trying to test my code on index.php this is my code
echo Yii::log("Mailer Error ",'mailerror','system.*');
then this is not working. nothing is happening.