code: public static LoggerContext getContext(final ClassLoader loader, final boolean currentContext) {
          try {
              return factory.getContext(FQCN, loader, null, currentContext);
          } catch (final IllegalStateException ex) {
              LOGGER.warn(ex.getMessage() + " Using SimpleLogger");
              return new SimpleLoggerContextFactory().getContext(FQCN, loader, null, currentContext);
          }
      }
docs: Returns a LoggerContext.
  
  @param loader The ClassLoader for the context. If null the context will attempt to determine the appropriate
  ClassLoader.
  @param currentContext if false the LoggerContext appropriate for the caller of this method is returned. For
  example, in a web application if the caller is a class in WEB-INF/lib then one LoggerContext may be
  returned and if the caller is a class in the container's classpath then a different LoggerContext may
  be returned. If true then only a single LoggerContext will be returned.
  @return a LoggerContext.