提交 4c5e58b4 编写于 作者: V vongosling

Minor Polish

上级 76464ba6
...@@ -98,7 +98,6 @@ public class ClientLogger { ...@@ -98,7 +98,6 @@ public class ClientLogger {
initialize.invoke(joranConfigurator, "log4j2", logConfigFilePath); initialize.invoke(joranConfigurator, "log4j2", logConfigFilePath);
} }
} }
//logClass = classType;
} catch (Exception e) { } catch (Exception e) {
System.err.println(e); System.err.println(e);
} }
......
...@@ -43,9 +43,10 @@ public class ClientLoggerTest { ...@@ -43,9 +43,10 @@ public class ClientLoggerTest {
// FIXME: Workaround for concrete implementation for slf4j, is there any better solution for all slf4j implementations in one class ? 2017/8/1 // FIXME: Workaround for concrete implementation for slf4j, is there any better solution for all slf4j implementations in one class ? 2017/8/1
@Test @Test
public void testLog4j() throws Exception { public void testLog4j2() throws Exception {
Logger logger = ClientLogger.getLog(); Logger logger = ClientLogger.getLog();
System.out.println(logger);
assertEquals("org.apache.logging.slf4j.Log4jLogger", logger.getClass().getName()); assertEquals("org.apache.logging.slf4j.Log4jLogger", logger.getClass().getName());
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册