question: public LogbackFactoryAccessor ( ClassLoader cl ) throws ClassNotFoundException , IllegalAccessException , InvocationTargetException { Class clazz = cl . loadClass ( "org.slf4j.impl.StaticLoggerBinder" ) ; Method getSingleton = MethodUtils . getAccessibleMethod ( clazz , "getSingleton" , new Class [ 0 ] ) ; Object singleton = getSingleton . invoke ( null ) ; Method getLoggerFactory = MethodUtils . getAccessibleMethod ( clazz , "getLoggerFactory" , new Class [ 0 ] ) ; Object loggerFactory = getLoggerFactory . invoke ( singleton ) ; Class loggerFactoryClass = cl . loadClass ( "ch.qos.logback.classic.LoggerContext" ) ; if ( ! loggerFactoryClass . isInstance ( loggerFactory ) ) { throw new RuntimeException ( "The singleton SLF4J binding was not Logback" ) ; } setTarget ( loggerFactory ) ; }
target:  Attempts to initialize a Logback logger factory via the given class loader.