Examples of SimpleLog


Examples of mods.natura.blocks.trees.SimpleLog

        cloud = new CloudBlock();
        GameRegistry.registerBlock(cloud, CloudItem.class, "Cloud");

        //Trees
        tree = new TreeBlock().setBlockName("natura.treeblock");
        redwood = new SimpleLog().setBlockName("natura.redwood");
        planks = new Planks().setBlockName("natura.planks");
        floraLeaves = (NLeaves) new NLeaves().setBlockName("natura.leaves");
        floraLeavesNoColor = (NLeaves) new NLeavesNocolor().setBlockName("natura.leavesnocolor");
        floraSapling = ((NSaplingBlock) new NSaplingBlock().setBlockName("natura.sapling"));
        willow = new WillowBlock().setBlockName("willow");
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

{
  public static void process(File lexiconFile, File grammarFile, File inFile, File outFile)
    throws Exception
  {
    // Create log
    Log log = new SimpleLog("log");

    // Create factory for SAX parser
    SAXParserFactory parserFactoryImpl = SAXParserFactory.newInstance();
    parserFactoryImpl.setNamespaceAware(true);
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

    /**
     * @see javax.servlet.GenericServlet#init()
     */
    public void init() throws ServletException {
        this.log = new SimpleLog("FOP/Servlet");
        log.setLevel(SimpleLog.LOG_LEVEL_WARN);
        this.uriResolver = new ServletContextURIResolver(getServletContext());
        this.transFactory = TransformerFactory.newInstance();
        this.transFactory.setURIResolver(this.uriResolver);
        //Configure FopFactory as desired
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

            case Project.MSG_WARN   : logLevel = SimpleLog.LOG_LEVEL_WARN; break;
            case Project.MSG_ERR    : logLevel = SimpleLog.LOG_LEVEL_ERROR; break;
            case Project.MSG_VERBOSE: logLevel = SimpleLog.LOG_LEVEL_DEBUG; break;
            default: logLevel = SimpleLog.LOG_LEVEL_INFO;
        }
        SimpleLog logger = new SimpleLog("FOP/Anttask");
        logger.setLevel(logLevel);
        try {
            FOPTaskStarter starter = new FOPTaskStarter(this);
            starter.setLogger(logger);
            starter.run();
        } catch (FOPException ex) {
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

        PrintStream errStream = System.err;
        ByteArrayOutputStream warning = new ByteArrayOutputStream();
        System.setErr(new PrintStream(warning));
       
        // force logging to go to System.err
        writer.setLog( new SimpleLog( "test.betwixt" ) );
       
       
        writer.setEndOfLine("X");
        warning.flush();
        assertTrue(warning.toString().startsWith("[WARN]"));
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

        PrintStream errStream = System.err;
        ByteArrayOutputStream warning = new ByteArrayOutputStream();
        System.setErr(new PrintStream(warning));
       
        // force logging to go to System.err
        writer.setLog( new SimpleLog( "test.betwixt" ) );
       
       
        writer.setEndOfLine("X");
        warning.flush();
        assertTrue(warning.toString().startsWith("[WARN]"));
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

   *
   *
   */
  public Log getLogObject()
  {
    return (Log) new SimpleLog(this.getClass().getName());
  }
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

        m_smtpListenerPort = TestUtil.getNonPrivilegedPort();
    }

    protected void setUp() throws Exception {
        setUpFakeLoader();
        SimpleLog log = new SimpleLog("Mock");
        log.setLevel(SimpleLog.LOG_LEVEL_ALL);
        m_testConfiguration = new SMTPTestConfiguration(m_smtpListenerPort);

       
        chain = new JamesProtocolHandlerChain();
        chain.setInstanceFactory(m_serviceManager);
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

  protected void setUp() throws Exception {
    setUpFakeLoader();

        chain = new JamesProtocolHandlerChain();
      chain.setInstanceFactory(serviceManager);
      chain.setLog(new SimpleLog("ChainLog"));
         
      setUpRemoteManager();
    m_testConfiguration = new RemoteManagerTestConfiguration(
        m_remoteManagerListenerPort);
  }
View Full Code Here

Examples of org.apache.commons.logging.impl.SimpleLog

       
        remotemanager = new RemoteManager();
        remotemanager.setDNSService(dnsservice);
        remotemanager.setFileSystem(filesystem);
        remotemanager.setProtocolHandlerChain(chain);
        SimpleLog log = new SimpleLog("Mock");
        log.setLevel(SimpleLog.LOG_LEVEL_DEBUG);
        remotemanager.setLog(log);
        remotemanager.setMailServer(mailServer);
              
    }
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.