Package com.cedarsolutions.util.JavaLoggingFormatter

Examples of com.cedarsolutions.util.JavaLoggingFormatter.LogInfo.format()


        assertEquals(org.apache.log4j.Level.INFO, info.getLevel());
        assertEquals("test.class.Name", info.getClassName());
        assertEquals("message", info.getMessage());

        String zone = DateUtils.formatDate(now, "Z"); // like "-0500"
        assertEquals("2011-10-07 13:01:42,663 " + zone + " [INFO ] --> [test.class.Name] message" + StringUtils.LINE_ENDING, info.format());
    }

    /** Test LogInfo.deriveLevel(). */
    @Test public void testDeriveLevel() {
        java.util.logging.Level[] input = new java.util.logging.Level[] { java.util.logging.Level.OFF,
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.