public static boolean isPerfOrAboveLogging(HiveConf conf) {
    String loggingLevel = conf.getVar(HiveConf.ConfVars.HIVE_SERVER2_LOGGING_OPERATION_LEVEL);
    return conf.getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_LOGGING_OPERATION_ENABLED) &&
      (loggingLevel.equalsIgnoreCase("PERFORMANCE") || loggingLevel.equalsIgnoreCase("VERBOSE"));
  }
Checks if the current HiveServer2 logging operation level is &gt;= PERFORMANCE.
@param conf Hive configuration.
@return true if current HiveServer2 logging operation level is &gt;= PERFORMANCE.
Else, false.
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java