Adding logging to log file for php errors.