Example usage for org.apache.commons.logging.impl NoOpLog NoOpLog

List of usage examples for org.apache.commons.logging.impl NoOpLog NoOpLog

Introduction

In this page you can find the example usage for org.apache.commons.logging.impl NoOpLog NoOpLog.

Prototype

public NoOpLog(String name) 

Source Link

Usage

From source file:org.coconut.core.LoggersTest.java

@Test
public void testCommonsLoggingName() {

    Logger l = Loggers.Commons.from(new Jdk14Logger("foobar"));
    assertEquals("foobar", Loggers.getName(l));
    l = Loggers.Commons.from(new Log4JLogger(LogManager.getLogger("foobar2")));
    assertEquals("foobar2", Loggers.getName(l));
    l = Loggers.Commons.from(new NoOpLog("dkdkd"));
    assertNull(Loggers.getName(l));//  www .ja  va 2 s. c o m
}