[slf4j-dev] [Bug 229] SLF4JBridgeHandler should remove JUL's Console appender

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Wed Aug 3 13:10:19 CEST 2011


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

Christian Stein <sormuras at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3
                 CC|                            |sormuras at gmx.de
           Severity|blocker                     |enhancement

--- Comment #1 from Christian Stein <sormuras at gmx.de> 2011-08-03 13:10:19 CEST ---
The bridge used to reset the entire JUL logging system while installing. That
has changed in commit
https://github.com/ceki/slf4j/commit/c9c553c44d8ee1e12ee584592b5612aa46d46c67#jul-to-slf4j/src/main/java/org/slf4j/bridge/SLF4JBridgeHandler.java
- which is a good thing.

Maybe you can achive your goal with a single line
java.util.logging.LogManager.getLogManager().reset(); before installing the
bridge.

And/or the bridge class could provide JUL-related helper methods, like
resetJUL() (wrapping the single line above) or removeJULConsoleAppend() using
the code you provided.

Cheers
Christian

-- 
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