Examples of JoranConfigurator


Examples of org.apache.log4j.joran.JoranConfigurator

        if(url!=null) {
            logger.info("Using '" + url.toExternalForm()+ "' for auto-configuration");
            try {
              // we temporarily swap the TCCL so that plugins can find resources
              Thread.currentThread().setContextClassLoader(classLoader);
              JoranConfigurator jc = new JoranConfigurator();
              jc.doConfigure(url, LogManager.getLoggerRepository());
            }finally{
                // now switch it back...
                Thread.currentThread().setContextClassLoader(previousTCCL);
            }
        }else {
View Full Code Here

Examples of org.apache.log4j.joran.JoranConfigurator

   
   
    String configFile = args[4];

    if(configFile.endsWith(".xml")) {
      JoranConfigurator jc = new JoranConfigurator();
      LoggerRepository repository = LogManager.getLoggerRepository();
      jc.doConfigure(configFile, repository);
    } else {
      PropertyConfigurator.configure(configFile);
    }
   
    new JMSSink(tcfBindingName, topicBindingName, username, password);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.