catch all errors in to a log file but not show on page
I wish to store all errors, from page not found, php coding errors, variable not found, the works. All in a error_log file.
in php.ini i have..
error_log = "/home/accname/errors.log"
in my presets file that is included in every webpage i have...
but still page not found and coding errors where i removed some letters from session variables in my testing file, these are not stored, only shown on the page.
How do I have them stored not shown, and have all errors that can be got stored in the file?