Check if developing and display errors, if not log errors and send to tmp/logs/error.log