Examples of Log4JLogger


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

            logger.fatal(arg0, arg1);
        }
    }
    public void info(Object arg0)
    {
        Log4JLogger logger = getLogger();
        if ( logger != null )
        {
            logger.info(arg0);
        }
    }
View Full Code Here

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

            logger.info(arg0);
        }
    }
    public void info(Object arg0, Throwable arg1)
    {
        Log4JLogger logger = getLogger();
        if ( logger != null )
        {
            logger.info(arg0, arg1);
        }
    }
View Full Code Here

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

            logger.info(arg0, arg1);
        }
    }
    public boolean isDebugEnabled()
    {
        Log4JLogger logger = getLogger();
        return logger != null ? logger.isDebugEnabled() : false;
    }
View Full Code Here

Examples of org.apache.james.jspf.impl.Log4JLogger

     *
     * @param args
     * @throws Throwable
     */
    public static void main(String[] args) throws Throwable {
        Logger l = new Log4JLogger(org.apache.log4j.Logger.getLogger("ROOT"));

        List tests = loadTests(YAMLFILE2);
        Iterator i = tests.iterator();
        while (i.hasNext()) {
            SPFYamlTestSuite o = (SPFYamlTestSuite) i.next();
View Full Code Here

Examples of org.apache.openejb.log.logger.Log4jLogger

import java.util.logging.Logger;

public class Log4jLoggerFactory implements WebBeansLoggerFactory {
    @Override
    public Logger getLogger(final Class<?> clazz, final Locale desiredLocale) {
        return new Log4jLogger(clazz.getName(), ResourceBundle.getBundle("openwebbeans/Messages", desiredLocale).toString());
    }
View Full Code Here

Examples of org.asteriskjava.util.internal.Log4JLogger

            }
        }

        if (log4jLoggingAvailable)
        {
            return new Log4JLogger(clazz);
        }

        if (javaLoggingAvailable == null)
        {
            try
View Full Code Here

Examples of org.codehaus.dna.impl.Log4JLogger

    public void testLog4JLoggerEmptyCtor()
        throws Exception
    {
        try
        {
            new Log4JLogger( null );
        }
        catch( NullPointerException npe )
        {
            assertEquals( "npe.getMessage()", "logger", npe.getMessage() );
        }
View Full Code Here

Examples of org.codehaus.dna.impl.Log4JLogger

    public void testLog4JLoggerGetChildLogger()
        throws Exception
    {
        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, Level.DEBUG );

        assertNotSame( "logger.getChildLogger == logger",
                       logger,
                       logger.getChildLogger( "whatever" ) );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Log4JLogger

        final String message = "Meep!";
        final Throwable throwable = null;
        final boolean output = true;

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );
        logger.trace( message );
        checkLogger( target, output, message, throwable, type );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Log4JLogger

    {
        final Level level = Level.ERROR;
        final String message = "Meep!";

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );
        logger.trace( message );
        checkLogger( target, false, null, null, null );
    }
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.