Examples of CommonsLogger


Examples of mazz.i18n.commons.CommonsLogger

            return new Log4jLogger( name, basename );
         }

         case COMMONS:
         {
            return new CommonsLogger( name, basename );
         }

         case JDK:
         default:
         {
View Full Code Here

Examples of mazz.i18n.commons.CommonsLogger

            return new Log4jLogger( clazz, basename );
         }

         case COMMONS:
         {
            return new CommonsLogger( clazz, basename );
         }

         case JDK:
         default:
         {
View Full Code Here

Examples of mazz.i18n.commons.CommonsLogger

            return new Log4jLogger( name, locale );
         }

         case COMMONS:
         {
            return new CommonsLogger( name, locale );
         }

         case JDK:
         default:
         {
View Full Code Here

Examples of mazz.i18n.commons.CommonsLogger

            return new Log4jLogger( clazz, locale );
         }

         case COMMONS:
         {
            return new CommonsLogger( clazz, locale );
         }

         case JDK:
         default:
         {
View Full Code Here

Examples of mazz.i18n.commons.CommonsLogger

            return new Log4jLogger( name );
         }

         case COMMONS:
         {
            return new CommonsLogger( name );
         }

         case JDK:
         default:
         {
View Full Code Here

Examples of mazz.i18n.commons.CommonsLogger

            return new Log4jLogger( clazz );
         }

         case COMMONS:
         {
            return new CommonsLogger( clazz );
         }

         case JDK:
         default:
         {
View Full Code Here

Examples of mx4j.log.CommonsLogger

        super("jmx-mx4j-adaptor");
    }

    protected HttpAdaptor createAdaptor() throws Exception
    {
        Log.redirectTo(new CommonsLogger());
        URI uri = new URI(StringUtils.stripToEmpty(jmxAdaptorUrl));
        adaptor = new HttpAdaptor(uri.getPort(), uri.getHost());

        // Set the XSLT Processor with any local overrides
        XSLTProcessor processor;
View Full Code Here

Examples of mx4j.log.CommonsLogger

        super("jmx-mx4j-adaptor");
    }

    protected HttpAdaptor createAdaptor() throws Exception
    {
        Log.redirectTo(new CommonsLogger());
        URI uri = new URI(StringUtils.stripToEmpty(jmxAdaptorUrl));
        adaptor = new HttpAdaptor(uri.getPort(), uri.getHost());

        // Set the XSLT Processor with any local overrides
        XSLTProcessor processor;
View Full Code Here

Examples of org.apache.avalon.framework.logger.CommonsLogger

    /**
     * Test debug level.
     */
    public void testDebug()
    {
        final Logger logger = new CommonsLogger((Log)mockLog.proxy(), "JUnit");

        mockLog.expects(once()).method("isDebugEnabled").will(returnValue(true));
        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

Examples of org.apache.avalon.framework.logger.CommonsLogger

    /**
     * Test info level.
     */
    public void testInfo()
    {
        final Logger logger = new CommonsLogger((Log)mockLog.proxy(), "JUnit");

        mockLog.expects(once()).method("isInfoEnabled").will(returnValue(true));
        mockLog.expects(once()).method("info").with(eq("JUnit"));
        mockLog.expects(once()).method("info").with(eq("JUnit"), same(exception));

        if(logger.isInfoEnabled())
        {
            logger.info("JUnit");
            logger.info("JUnit", exception);
        }
    }
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.