Package org.slf4j.ext

Examples of org.slf4j.ext.MDCStrLookup


    }

    public void testLookup() throws Exception {
        MDC.put("key", "value");
        MDC.put("number", "2");
        MDCStrLookup lookup = new MDCStrLookup();
        assertEquals("value", lookup.lookup("key"));
        assertEquals("2", lookup.lookup("number"));
        assertEquals(null, lookup.lookup(null));
        assertEquals(null, lookup.lookup(""));
        assertEquals(null, lookup.lookup("other"));
    }
View Full Code Here

TOP

Related Classes of org.slf4j.ext.MDCStrLookup

Copyright © 2018 www.massapicom. 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.