code: function logRequestError(err, req, finalResp) {
      if (logger) {
        logger.error('\nRequest Error:\n',
                      'URL:', req.method, req.url, '\n\n',
                      'Error:', err, '\n\n',
                      'Response:', finalResp, '\nError End.\n');
      }
    }
docs: Log Functions