Package org.speakright.core

Examples of org.speakright.core.SRLogger


      if (prompt == null) {
        break; //we're done
      }
      else
      {
        SRLogger logger = SRLogger.createLogger();
        logger.log(String.format("zloading %d items from %s subIndex %d", prompt.m_itemL.size(), type, subIndex));
        //add prompt first       
        promptToLoad.m_itemL.addAll(0, prompt.m_itemL);
        prompt.m_itemL.clear();
       
        subIndex--; //look for next one
      }
    }
   
    //now do postfixes
    subIndex = 1;
    while(true) {
      Prompt prompt = find(type, subIndex);
      if (prompt == null) {
        break; //we're done
      }
      else
      {
        SRLogger logger = SRLogger.createLogger();
        logger.log(String.format("zloading %d items from %s subIndex %d", prompt.m_itemL.size(), type, subIndex));
        promptToLoad.m_itemL.addAll(prompt.m_itemL);
        prompt.m_itemL.clear();
       
        subIndex++; //look for next one
      }
View Full Code Here


  /**
   * @param args
   */
  public static void main(String[] args) {
    SRLogger logger = SRLogger.createLogger();
   
    int numTests = tests.length;
    logger.log("Simpsons demo AUTO-TESTER..." + numTests + " tests.");
   
    boolean failed = false;
    for(int i = 1; i <= numTests; i++) {
      logger.log("=============== TEST #" + i + " ===========================");
      if (! failed) {
        String cmds = tests[i - 1];
        SRAutoTester tester = new SRAutoTester(i, cmds);
        if (!tester.run(InteractiveTester.createTester())) {
          failed = true;
        }
      }
    }
    logger.log("TESTS FINISHED. ");
  }
View Full Code Here

  }
 
  boolean getMode()
  {
      //do this here so we look for local log4j.properties file (in web-inf\classes) first
      SRLogger logger = SRLogger.createLogger();

//        logger.log("in doGet!");
        boolean b = false;
        String str = m_request.getParameter("mode");
//        logger.log("mode: " + str);
        if (str!= null && str.equals("html"))
        {
          logger.log("doing html!");
          b = true;
          m_response.setContentType("text/html");
        }
        else { //vxml
          logger.log("doing vxml!");
         
        }
     
    m_response.setHeader("pragma", "no-cache");
    m_doingHTML = b;
View Full Code Here

//      System.out.println("saved SRRunner");         
  }
 
  SRRunner activateSavedSRRunner(HttpServletRequest request)
  {
    SRLogger logger = SRLogger.createLogger();
        HttpSession session = request.getSession();
        SRRunner run = (SRRunner)session.getAttribute("runner");
        if (run == null)
        {
          logger.log("POST and no runner!");
      return null;
        }
        else
        {
          logger.log("POST restored saved session");         
          run.restoreModelBinder(new ModelBinder());
          run.finishActivation(); //must call this!
      run.setExtensionFactory(this);
//          setupUrls(run, request);
      m_factory.initUrls(run, getUrl(m_request), getServletUrl(m_request));
View Full Code Here

    return path;
  }
 
  void log(String msg)
  {
    SRLogger logger = SRLogger.createLogger();
    logger.log(msg);
  }
View Full Code Here

TOP

Related Classes of org.speakright.core.SRLogger

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.