Package org.apache.avalon.framework.logger

Examples of org.apache.avalon.framework.logger.Logger.debug()


        //
        // test source URL creation - TO BE DONE
        //

        logger.debug( "help me - need to test source creation" );

        //
        // test source resolution - TO BE DONE
        //
View Full Code Here


        //
        // test source resolution - TO BE DONE
        //

        logger.debug( "help me - need to test source resolution" );

        assertTrue( true );
    }

}
View Full Code Here

    public void commit( Configuration modeConf, Map objectModel ) {
        if (this.settings.get("isolation-level","0").equals("1")) {

            Logger logger = getLogger();
            if (logger.isDebugEnabled())
                logger.debug("prepare commit");

            Map aMap = this.prepareCommit(objectModel, TRANS_PREFIX);
            if (aMap == null) {
                return;
            }
View Full Code Here

            while (iter.hasNext()) {
                String key = (String) iter.next();
                Object value = aMap.get(key);
                if (prefix != null) { key = prefix + key; }
                if (logger.isDebugEnabled())
                    logger.debug("committing ['"+key+"'] to ['"+value+"']");
                session.setAttribute(key, value);
            }

            if (logger.isDebugEnabled())
                logger.debug("done commit");
View Full Code Here

                    logger.debug("committing ['"+key+"'] to ['"+value+"']");
                session.setAttribute(key, value);
            }

            if (logger.isDebugEnabled())
                logger.debug("done commit");

        } else {
            if (getLogger().isDebugEnabled())
                getLogger().debug("commit");
            this.prepareCommit(objectModel, ROLLBACK_LIST);
View Full Code Here

    public void commit( Configuration modeConf, Map objectModel ) {
        if (this.settings.get("isolation-level","0").equals("1")) {
           
            Logger logger = getLogger();
            if (logger.isDebugEnabled())
                logger.debug("prepare commit");

            Map aMap = this.prepareCommit(objectModel, TRANS_PREFIX);
            if (aMap == null) {
                return;
            }
View Full Code Here

            while (iter.hasNext()) {
                String key = (String) iter.next();
                Object value = aMap.get(key);
                if (prefix != null) { key = prefix + key; }
                if (logger.isDebugEnabled())
                    logger.debug("committing ['"+key+"'] to ['"+value+"']");
                request.setAttribute(key, value);
            }

            if (logger.isDebugEnabled())
                logger.debug("done commit");
View Full Code Here

                    logger.debug("committing ['"+key+"'] to ['"+value+"']");
                request.setAttribute(key, value);
            }

            if (logger.isDebugEnabled())
                logger.debug("done commit");

        } else {
            if (getLogger().isDebugEnabled())
                getLogger().debug("commit");
            this.prepareCommit(objectModel, ROLLBACK_LIST);
View Full Code Here

        mockLog.expects(once()).method("debug").with(eq("JUnit"));
        mockLog.expects(once()).method("debug").with(eq("JUnit"), same(exception));

        if(logger.isDebugEnabled())
        {
            logger.debug("JUnit");
            logger.debug("JUnit", exception);
        }
    }

    /**
 
View Full Code Here

        mockLog.expects(once()).method("debug").with(eq("JUnit"), same(exception));

        if(logger.isDebugEnabled())
        {
            logger.debug("JUnit");
            logger.debug("JUnit", exception);
        }
    }

    /**
     * Test info level.
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.