public void startSummary() {
      querySummary.setLength(0);
      querySummary.append("\n");
      collectQuerySummary = true;
    }
Logs an error into the log file, and into the HiveServer2 or HiveCli error stream too.
Handles an extra detail which will not be printed if null.
BeeLine uses the operation log file to show the logs to the user, so depending on the
BeeLine settings it could be shown to the user.
@param error The log message
@param detail Extra detail to log which will be not printed if null
ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java