public void updateGlobalConfiguration()

in src/main/java/org/apache/sling/commons/log/logback/internal/LogConfigManager.java [739:765]


    public void updateGlobalConfiguration(@Nullable Dictionary<String, String> configuration)
            throws ConfigurationException {
        logger.info("updating global configuration for {}", LogConstants.PID);

        // fallback to start default settings when the config is deleted
        if (configuration == null) {
            configuration = defaultConfiguration;
        }

        processGlobalConfig(configuration);

        // set the logger name to a special value to indicate the global
        // (ROOT) logger setting (SLING-529)
        configuration.put(LogConstants.LOG_LOGGERS, org.slf4j.Logger.ROOT_LOGGER_NAME);

        // normalize logger file (might be console
        final String logFile = configuration.get(LogConstants.LOG_FILE);
        if (logFile == null || logFile.trim().length() == 0) {
            configuration.put(LogConstants.LOG_FILE, LogConstants.FILE_NAME_CONSOLE);
        }

        // update the default log writer and logger configuration
        updateLogWriter(LogConstants.PID, configuration, false);
        updateLoggerConfiguration(LogConstants.PID, configuration, false);

        configChanged();
    }