private static void cacheFactory(ClassLoader classLoader,LogFactory factory){
  if (factory != null) {
    if (classLoader == null) {
      nullClassLoaderFactory=factory;
    }
 else {
      factories.put(classLoader,factory);
    }
  }
}

private static void cacheFactory ( ClassLoader classLoader , LogFactory factory ) { if ( factory != null ) { if ( classLoader == null ) { nullClassLoaderFactory = factory ; } else { factories . put ( classLoader , factory ) ; } } }
remember this factory , so later calls to logfactory . getcachedfactory can return the previously created object ( together with all its cached log objects ) .
