if (isLevelEnabled(level)){
Pair<String, Throwable> data = splitObjectsToLog(stackTraceIndex, objectsToLog);
if (log instanceof Jdk14Logger){
//optimization
Jdk14Logger logger = (Jdk14Logger) log;
log(logger.getLogger(), level, data.getLeft(),data.getRight());
} else if ( "org.apache.commons.logging.impl.Log4JLogger".equals(log.getClass().getName() )) {
if (log4jLevelMap == null){
log4jLevelMap = CollectionFactory.getDefault().createMap(LEVEL_TRACE, org.apache.log4j.Level.TRACE, LEVEL_DEBUG, org.apache.log4j.Level.DEBUG, LEVEL_INFO, org.apache.log4j.Level.INFO, LEVEL_WARN, org.apache.log4j.Level.WARN, LEVEL_ERROR, org.apache.log4j.Level.ERROR, LEVEL_FATAL, org.apache.log4j.Level.FATAL);
}
Log4JLogger logger = (Log4JLogger) log;
logger.getLogger().log(getClass().getName(), (org.apache.log4j.Priority) log4jLevelMap.get(level), data.getLeft(),data.getRight());
} else {
boolean rightIsNull = CollectionUtilitities.isRightNull(data);
switch (level){
case LEVEL_TRACE: