PHP error logging - can I log all ofg the site's error to a single file?
- by mawg
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?