public Logger getLogger(String name) {
        Logger slf4jLogger = loggerMap.get(name);
        if (slf4jLogger != null) {
            return slf4jLogger;
        } else {
            org.apache.log4j.Logger log4jLogger;
            if (name.equalsIgnoreCase(Logger.ROOT_LOGGER_NAME))
                log4jLogger = LogManager.getRootLogger();
            else
                log4jLogger = LogManager.getLogger(name);

            Logger newInstance = new Reload4jLoggerAdapter(log4jLogger);
            Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
            return oldInstance == null ? newInstance : oldInstance;
        }
    }
Log4jLoggerFactory is an implementation of {@link ILoggerFactory} returning
the appropriate named {@link Reload4jLoggerAdapter} instance.

@author Ceki G&uuml;lc&uuml;
slf4j-reload4j/src/main/java/org/slf4j/reload4j/Reload4jLoggerFactory.java