I am currently capturing script errors as such:
error_reporting(-1) ;
ini_set("log_errors",TRUE) ;
ini_set("error_log","phpErrors.log") ;
But I need a better mechanism of reporting those errors so I don't have to manually go look at log files to see if something was captured. I read about error_log
has a built in email function as found here: Send errors message via email using error_log()
Does using this email function in error_log() interfere with logging to the log file? As well, is there a better mechanism for creating alerts (of some type) so I am not getting inundated with error emails? I suppose whatever mechanism I use it will be the same level of alerts/emails - but I just need a better way of getting notified than scrubbing through error logs.
Any recommendations?