private void RunTest(File logFile,
    String hiveLog4jProperty, String hiveExecLog4jProperty) throws Exception {
    // clean test space
    cleanLog(logFile);
    assertFalse(logFile + " should not exist", logFile.exists());

    // config log4j with customized files
    // check whether HiveConf initialize log4j correctly
    configLog(hiveLog4jProperty, hiveExecLog4jProperty);

    // check whether log file is created on test running
    assertTrue(logFile + " should exist", logFile.exists());
  }
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