Package ch.qos.logback.classic.spi

Examples of ch.qos.logback.classic.spi.Configurator


    StatusListenerConfigHelper.installIfAsked(loggerContext);
    URL url = findURLOfDefaultConfigurationFile(true);
    if (url != null) {
      configureByResource(url);
    } else {
      Configurator c = EnvUtil.loadFromServiceLoader(Configurator.class);
      if (c != null) {
        try {
          c.setContext(loggerContext);
          c.configure(loggerContext);
        } catch (Exception e) {
          throw new LogbackException(String.format("Failed to initialize Configurator: %s using ServiceLoader",
              c != null ? c.getClass().getCanonicalName() : "null"), e);
        }
      } else {
        BasicConfigurator.configure(loggerContext);
      }
    }
View Full Code Here

TOP

Related Classes of ch.qos.logback.classic.spi.Configurator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.