Java源码示例:com.alipay.sofa.rpc.log.Logger
示例1
@Test
public void testRpcLoggerLevel() {
Logger rpcLogger = LoggerFactory.getLogger("com.alipay.sofa.rpc.transport");
Assert.assertTrue(rpcLogger.isDebugEnabled());
}
示例2
@Test
public void testStarterLoggerLevel() {
org.slf4j.Logger starterLogger = SofaBootRpcLoggerFactory.getLogger("com.alipay.sofa.rpc.boot.xxx");
Assert.assertTrue(starterLogger.isErrorEnabled());
}
示例3
@Test
public void testOtherLoggerLevel() {
Logger rpcLogger = LoggerFactory.getLogger("com.alipay.sofa.rpc.xxx");
Assert.assertTrue(rpcLogger.isDebugEnabled());
}
示例4
@Test
public void testUserAppLogerLevel() {
org.slf4j.Logger userLogger = org.slf4j.LoggerFactory.getLogger("com.user.app.xxx");
Assert.assertTrue(userLogger.isWarnEnabled());
}