Re: log php error messages
I started a project in cakeforge to share the logging system that we are using at livemocha. http://cakeforge.org/projects/mocha-logger/ On Sep 19, 9:55 am, CodeSith [EMAIL PROTECTED] wrote: It's pretty stand to have multipleloglevels: DEBUG, INFO, WARN, ERROR AND FATAL. You definitely want tologERROR and FATAL messages in production environment. WARN and INFO level messages might be optional. You should onlylogDEBUG level messages in dev or test environment. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: log php error messages
It's pretty stand to have multiple log levels: DEBUG, INFO, WARN, ERROR AND FATAL. You definitely want to log ERROR and FATAL messages in production environment. WARN and INFO level messages might be optional. You should only log DEBUG level messages in dev or test environment. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
log php error messages
Hi there How can I log any notice/warning/error thrown by php? I know how to log cakeerrors like missing_controller (I adapted http://www.ad7six.com/MiBlog/EmailMeErrors) but this does not log any php errors. What I want to achieve at the end is that the user does not see any errors (which is why I have set the debug level to 0) but all error messages are logged in a logfile. I use cake 1.2 Thanks for any tips Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: log php error messages
On Sep 18, 12:56 pm, Claudia [EMAIL PROTECTED] wrote: Hi there How can I log any notice/warning/error thrown by php? Did you look at /app/tmp/logs/errors.log ? One would hope that you don't have any php errors when a site goes live. hth, AD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: log php error messages
Claudia wrote: Hi there How can I log any notice/warning/error thrown by php? PHP (not CakePHP) warnings and errors can be logged to syslog or to a file, search php.ini for the 'error_log' setting. Marcus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: log php error messages
Thanks for your replies. @AD: The error logs are not filled if debug is set to 0. Of course you are correct that there should not be any errors in an online page but it would be nice to be sure about it. @Marcus: Unfortunately I do not have access to this log. Apart from that I would like to log additional information for any error so having a custom error handler would be nice. Claudia On Sep 18, 3:00 pm, Marcus T. Jaschen [EMAIL PROTECTED] wrote: Claudia wrote: Hi there How can I log any notice/warning/error thrown by php? PHP (not CakePHP) warnings and errors can be logged to syslog or to a file, search php.ini for the 'error_log' setting. M arcus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: log php error messages
I've noticed this too, and assumed it was because I use a custom log class. When DEBUG 0, then any notices, warnings and errors are logged to the /app/tmp/logs/error.log with my own debug statements. When DEBUG = 0 though, none are logged. In both cases, the log_errors and error_log settings in php.ini are ignored (due to the set_error_handler() call in /cake/libs/ debugger.php), and when DEBUG is 0 then the error_reporting(0); in / cake/libs/configure.php causes the debugger not to log any errors. Would most people assume that when in production mode no errors are logged at all? I certain agree that notices and warnings should not be, but if there is a fatal error for some reason it makes sense that this should at least be logged... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---