public static boolean isInstalled ( ) throws SecurityException { java . util . logging . Logger rootLogger = getRootLogger ( ) ; Handler [ ] handlers = rootLogger . getHandlers ( ) ; for ( int i = 0 ; i < handlers . length ; i ++ ) { if ( handlers [ i ] instanceof SLF4JBridgeHandler ) { return true ; } } return false ; }
Returns true if SLF4JBridgeHandler has been previously installed returns false otherwise .