LoggingObserverShould.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:core-java 作者:
private static void assertLogLevel(LoggingEvent event, Level level) {
    switch (level) {
        case TRACE:
            assertEquals(org.slf4j.event.Level.TRACE, event.getLevel());
            break;
        case DEBUG:
            assertEquals(org.slf4j.event.Level.DEBUG, event.getLevel());
            break;
        case INFO:
            assertEquals(org.slf4j.event.Level.INFO, event.getLevel());
            break;
        case WARN:
            assertEquals(org.slf4j.event.Level.WARN, event.getLevel());
            break;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号