private static ConfigurationNode processRootLogger()

in log4j-converter-config/src/main/java/org/apache/logging/converter/config/internal/v2/PropertiesV2ConfigurationParser.java [297:315]


    private static ConfigurationNode processRootLogger(PropertiesSubset properties) {
        ConfigurationNodeBuilder builder =
                newNodeBuilder().addAttribute(LEVEL_AND_REFS_ATTRIBUTE, extractProperty(properties, ""));

        String type = extractProperty(properties, TYPE_ATTRIBUTE);
        if (ASYNC_ROOT_PLUGIN_NAME.equalsIgnoreCase(type)) {
            builder.setPluginName(ASYNC_ROOT_PLUGIN_NAME);
        } else if (type != null) {
            throw new ConfigurationConverterException("Unknown logger type `" + type + "` for root logger.");
        } else {
            builder.setPluginName(ROOT_PLUGIN_NAME);
        }

        addAppenderRefsToComponent(properties, builder);
        addFiltersToComponent(properties, builder);
        processRemainingProperties(properties, builder);

        return builder.get();
    }