code: public Logger getOrCreateLogger(String clazz) {
        Logger logger = appenderLoggerMap.get(clazz);
        if (logger == null) {
            // If multiple threads do the puts, that is fine as it is a one time thing
            logger = Logger.getLogger(clazz);
            appenderLoggerMap.put(clazz, logger);
        }
        return logger;
    }
docs: Get the logger to be used for the given class.
  @param clazz - The class for which the logger needs to be returned
  @return- The log4j logger object