PHP error logging - can I log all ofg the site's error to a single file?

Posted by mawg on Stack Overflow See other posts from Stack Overflow or by mawg
Published on 2010-04-22T08:17:02Z Indexed on 2010/04/22 8:23 UTC
Read the original article Hit count: 144

Filed under:

hi, in PHP.INI, I can set the variable "error_log" and it is currently set to "error_log", which manes one file of that name in each directory

Do you know ... if I set it to "public_html/error_log" - will I get only one single error log file? Any other way to do so? I really just want a single site-wide error file to check, rather than one on each sub-directory.

For bonus marks, can I send myself an email each time a new entry is added to the file?

Left as an exercise for the reader - can I ignore some "errors" which aren't really?

© Stack Overflow or respective owner

Related posts about php