private synchronized List<org.apache.log4j.Logger> loggers(String namespace) {
        Objects.requireNonNull(namespace, "Logging namespace may not be null");

        if (ROOT_LOGGER_NAME.equalsIgnoreCase(namespace)) {
            List<org.apache.log4j.Logger> result = Collections.list(currentLoggers());
            result.add(rootLogger());
            return result;
        }

        List<org.apache.log4j.Logger> result = new ArrayList<>();
        org.apache.log4j.Logger ancestorLogger = lookupLogger(namespace);
        Enumeration<org.apache.log4j.Logger> en = currentLoggers();
        boolean present = false;
        while (en.hasMoreElements()) {
            org.apache.log4j.Logger current = en.nextElement();
            if (current.getName().startsWith(namespace)) {
                result.add(current);
            }
            if (namespace.equals(current.getName())) {
                present = true;
            }
        }

        if (!present) {
            result.add(ancestorLogger);
        }

        return result;
    }
Retrieve all known loggers within a given namespace, creating an ancestor logger for that
namespace if one does not already exist
@param namespace the namespace that the loggers should fall under; may not be null
@return all loggers that fall under the given namespace; never null, and will always contain
at least one logger (the ancestor logger for the namespace)
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Loggers.java