private void processGlobalConfig()

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


    private void processGlobalConfig(Dictionary<String, String> configuration) {
        String fileName = configuration.get(LOGBACK_FILE);
        if (fileName != null && !fileName.isEmpty()) {
            File file = new File(getAbsoluteFilePath(fileName));
            final String path = file.getAbsolutePath();
            if (!file.exists()) {
                log.warn("Logback configuration file [{}] does not exist.", path);
            } if (!file.isFile()) {
                log.warn("Logback configuration file [{}] is not a file.", path);
            }else if (!file.canRead()) {
                log.warn("Logback configuration [{}]file cannot be read", path);
            } else {
                synchronized (configLock) {
                    logbackConfigFile = file;
                }
            }
        }

        //Process packaging data
        Object packagingData = configuration.get(LOG_PACKAGING_DATA);
        if (packagingData != null) {
            packagingDataEnabled = Boolean.valueOf(packagingData.toString());
        } else {
            //Defaults to false i.e. disabled in OSGi env
            packagingDataEnabled = false;
        }

        maxCallerDataDepth = Util.toInteger(configuration.get(LOG_MAX_CLALLER_DEPTH),
                ClassicConstants.DEFAULT_MAX_CALLEDER_DATA_DEPTH);
        maxOldFileCount = Util.toInteger(configuration.get(PRINTER_MAX_INCLUDED_FILES),
                PRINTER_MAX_INCLUDED_FILES_DEFAULT);
        numOfLines = Util.toInteger(configuration.get(PRINTER_NUM_OF_LINES),
                PRINTER_NUM_OF_LINES_DEFAULT);

    }