Examples of SimpleFormatter


Examples of org.jzonic.jlo.formatter.SimpleFormatter

        assertNotNull(lc.getLogger("org.jzonic.jlo"));
    }
   
    public void testAddLogGenerator() {
        Handler fileHandler = new MockHandler("Test");
        Formatter simpleFormatter = new SimpleFormatter("Test");       
        LogGenerator lg = new LogGenerator("TestGenerator", fileHandler, simpleFormatter);       
        lc.addLogGenerator(lg);
        assertEquals(1,lc.getLogGeneratorCount());
    }
View Full Code Here

Examples of org.jzonic.jlo.formatter.SimpleFormatter

        super(testName);
    }
   
    public void setUp() throws Exception {
        mockHandler = new MockHandler("Test");
        LogGenerator lg = new LogGenerator("test", mockHandler, new SimpleFormatter("Test"));
        logger = new Logger("test",255,"Test");
        logger.addLogGenerator(lg);
        channel = new Channel("debug",lg,true);       
        testLogger = new Logger("test2",Target.warn.intValue(),"Test");
        testLogger.addLogGenerator(lg);
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.