[slf4j-dev] [Bug 252] BundleActivator would be useful

bugzilla-daemon at qos.ch bugzilla-daemon at qos.ch
Thu Aug 9 01:16:04 CEST 2012


http://bugzilla.slf4j.org/show_bug.cgi?id=252

--- Comment #2 from Matt Bishop <matt at thebishops.org> 2012-08-09 01:16:03 CEST ---
For the stop method, the Activator should uninstall the bridge handler. Also,
start should check if it has already been installed:


    @Override
    public void start(final BundleContext context) throws Exception {
        if (!SLF4JBridgeHandler.isInstalled()) {
            SLF4JBridgeHandler.install();
        }
    }

    @Override
    public void stop(final BundleContext context) throws Exception {
        SLF4JBridgeHandler.uninstall();
    }

-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list