private void registerWebConsoleSupport()

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


    private void registerWebConsoleSupport() {
        Dictionary<String, Object> panelProps = new Hashtable<>(); // NOSONAR
        panelProps.put(Constants.SERVICE_VENDOR, LogConstants.ASF_SERVICE_VENDOR);
        panelProps.put(Constants.SERVICE_DESCRIPTION, "Sling Log Panel Support");
        registrations.add(bundleContext.registerService(
                LogPanel.class.getName(), new SlingLogPanel(this, bundleContext), panelProps));

        Dictionary<String, Object> printerProps = new Hashtable<>(); // NOSONAR
        printerProps.put(Constants.SERVICE_VENDOR, LogConstants.ASF_SERVICE_VENDOR);
        printerProps.put(Constants.SERVICE_DESCRIPTION, "Sling Log Configuration Printer");
        printerProps.put("felix.webconsole.label", LogConstants.PRINTER_URL);
        printerProps.put("felix.webconsole.title", "Log Files");
        printerProps.put("felix.webconsole.configprinter.modes", "always");

        // TODO need to see to add support for Inventory Feature
        registrations.add(bundleContext.registerService(
                SlingConfigurationPrinter.class, new SlingConfigurationPrinter(this), printerProps));
    }