logback-android/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
void init() {
    try {
      try {
        new ContextInitializer(defaultLoggerContext).autoConfig();
      } catch (JoranException je) {
        Util.report("Failed to auto configure default logger context", je);
      }
      // logback-292
      if(!StatusUtil.contextHasStatusListener(defaultLoggerContext)) {
        StatusPrinter.printInCaseOfErrorsOrWarnings(defaultLoggerContext);
      }
      contextSelectorBinder.init(defaultLoggerContext, KEY);
      initialized = true;
    } catch (Exception t) { // see LOGBACK-1159
      Util.report("Failed to instantiate [" + LoggerContext.class.getName()
          + "]", t);
    }
  }
void init() {
    try {
      try {
        new ContextInitializer(defaultLoggerContext).autoConfig();
      } catch (JoranException je) {
        Util.report("Failed to auto configure default logger context", je);
      }
      // logback-292
      if(!StatusUtil.contextHasStatusListener(defaultLoggerContext)) {
        StatusPrinter.printInCaseOfErrorsOrWarnings(defaultLoggerContext);
      }
      contextSelectorBinder.init(defaultLoggerContext, KEY);
      initialized = true;
    } catch (Exception t) { // see LOGBACK-1159
      Util.report("Failed to instantiate [" + LoggerContext.class.getName()
          + "]", t);
    }
  }
void init ( ) { try { try { new ContextInitializer ( defaultLoggerContext ) . autoConfig ( ) ; } catch ( JoranException je ) { Util . report ( "Failed to auto configure default logger context" , je ) ; } // logback-292 if ( ! StatusUtil . contextHasStatusListener ( defaultLoggerContext ) ) { StatusPrinter . printInCaseOfErrorsOrWarnings ( defaultLoggerContext ) ; } contextSelectorBinder . init ( defaultLoggerContext , KEY ) ; initialized = true ; } catch ( Exception t ) { // see LOGBACK-1159 Util . report ( "Failed to instantiate [" + LoggerContext . class . getName ( ) + "]" , t ) ; } }
Package access for testing purposes.
Package access for testing purposes .