MCPcopy Create free account
hub / github.com/OreosLab/bili / Log4j2Test

Class Log4j2Test

src/test/java/Log4j2Test.java:4–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import org.junit.jupiter.api.Test;
3
4@Slf4j
5public class Log4j2Test {
6
7 // 打印各种级别的日志用于测试
8 @Test
9 public void logAll() throws Exception {
10 log.trace("trace level log");
11 log.debug("debug level log");
12 log.info("info level log");
13 log.error("error level log");
14 // 设置休眠时间(单位ms),控制日志打印速度
15 Thread.sleep(3);
16 }
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…