Sunday, October 21, 2012

Problem Logging errors

After spending a long time tweaking around, I found that Cake stops PHP from doing its own log.

I was expecting the settings in php.ini to be separated from Cake's core.php settings.

Apparently not. At least with Cake 1.2.10

As a conclusion, just set debug level to 3 with all the error_logs on and stuffs in php.ini.

Actually, even when I set a debug level of 3, it still doesn't log Fatal errors:

Fatal error: Maximum execution time of 60 seconds exceeded in ...

Or just enter a undefined function. It wouldn't log.
This makes the log unreliable for tracing what went wrong.

So I guess the best solution is to work with the error display onscreen. Unless there's a solution out there to log ALL php errors with debug 0.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: