commonsAccessor.setApplication(application);
return commonsAccessor.getDestination(logIndex);
}
private LogDestination getJdk14LogDestination(ClassLoader cl, Application application, boolean root, String logName, String handlerIndex) {
Jdk14ManagerAccessor manager = Jdk14ManagerAccessor.create(cl);
if (manager != null) {
manager.setApplication(application);
Jdk14LoggerAccessor log = (root ? manager.getRootLogger() : manager.getLogger(logName));
if (log != null) {
return log.getHandler(handlerIndex);
}
}
return null;