PathLocator pathLocator = new PathLocator();
String log4jConfigFilePath = pathLocator.findAbsoluteEndPath(
referenceClass, classDirName, configDirName
+ File.separator + log4jConfigFileName);
Log4jConfigurator log4jConfigurator = new Log4jConfigurator(
log4jConfigFilePath);
log4jConfigurator.configure();
} catch (Exception e) {
log.error("Log config error: " + e.getMessage());
}
}