function logError(filename, position, message, extra) {
  if (global.WF.options.testWarnOnly) {
    logWarning(filename, position, message, extra);
    return;
  }
  logMessage('ERROR', filename, position, message, extra);
}
Logs an ERROR message to the console

@param {string} filename The file the issue occurred in
@param {Object} position The line/column the error occurred on
@param {string} message The message to be displayed
@param {Object} extra Any extra information to show