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

Chetan Mehrotra <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from Chetan Mehrotra <[email protected]> ---
Another option can be that if the ILoggerFactory implementation also implements
the Closeable interface [1]. Then client code need not depend on specific API
but can be generic 

import org.slf4j.LoggerFactory;

if(LoggerFactory.getILoggerFactory() implements Closeable){
   ((Closeable)LoggerFactory.getILoggerFactory()).close();
}

Thus if any of the bindings require cleanup then there respetive factories
implement the Closeable interface e.g. Logback


[1] http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
slf4j-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/slf4j-dev

Reply via email to