Hi
I would make a logging system so that I can register all PHP error and
MySQL Error .
For make that I have inside app_controller.php the function
beforeFilter that is :
function beforeFilter() {
ini_set('display_errors','0');
ini_set ('log_errors', 1);
ini_set ('error_log', ROOT."/".APP_DIR."/tmp/logs/error.log");
}
And I have set debug to 1.
In this way I can register all PHP errors but not the MYSQL Error.
I have two questions.
How can I register also the MySQL Error inside this file?
If I set debug to 0 then the error log doesn't work .In this case how
can I do a log system?
Many Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---