@Test
  public void testHiveLogging() throws Exception {
    // customized log4j config log file to be: /${test.tmp.dir}/TestHiveLogging/hiveLog4jTest.log
    File customLogPath = new File(new File(System.getProperty("test.tmp.dir")),
        System.getProperty("user.name") + "-TestHiveLogging/");
    String customLogName = "hiveLog4j2Test.log";
    File customLogFile = new File(customLogPath, customLogName);
    RunTest(customLogFile,
      "hive-log4j2-test.properties", "hive-exec-log4j2-test.properties");
  }
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