public void cleanLog(File logFile) {
    if (logFile.exists()) {
      logFile.delete();
    }
    File logFileDir = logFile.getParentFile();
    if (logFileDir.exists()) {
      logFileDir.delete();
    }
  }
TestHiveLogging

Test cases for HiveLogging, which is initialized in HiveConf.
Loads configuration files located in common/src/test/resources.
common/src/test/org/apache/hadoop/hive/conf/TestHiveLogging.java