Package org.apache.logging.log4j.core.config

Examples of org.apache.logging.log4j.core.config.ConfigurationSource


      System.setProperty("LOG_FILE", logFile);
    }
    try {
      LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
      URL url = ResourceUtils.getURL(location);
      ConfigurationSource source = new ConfigurationSource(url.openStream(), url);
      ctx.start(ConfigurationFactory.getInstance().getConfiguration(source));
    }
    catch (Exception ex) {
      throw new IllegalStateException("Could not initialize Log4J2 logging from "
          + location, ex);
View Full Code Here

TOP

Related Classes of org.apache.logging.log4j.core.config.ConfigurationSource

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.