@Test
public void testLoggerLoaction() {
String loggerBinderClassName = "org.slf4j.impl.StaticLoggerBinder";
Class<?> loggerBinderClass = null;
try {
loggerBinderClass = Class.forName(loggerBinderClassName);
} catch (ClassNotFoundException e) {
System.out.println(loggerBinderClassName + " is not found");
}
URL loaction = loggerBinderClass.getProtectionDomain().getCodeSource().getLocation();
System.out.println(loaction);
}
判断使用的日志框架
乱蜂朝王2023-12-30 17:15
相关推荐
云烟成雨TD2 天前
Spring AI Alibaba 1.x 系列【6】ReactAgent 同步执行 & 流式执行Wenweno0o2 天前
0基础Go语言Eino框架智能体实战-chatModel于慨2 天前
Lambda 表达式、方法引用(Method Reference)语法swg3213212 天前
Spring Boot 3.X Oauth2 认证服务与资源服务gelald2 天前
SpringBoot - 自动配置原理殷紫川2 天前
深入理解 AQS:从架构到实现,解锁 Java 并发编程的核心密钥一轮弯弯的明月2 天前
贝尔数求集合划分方案总数chenjingming6662 天前
jmeter线程组设置以及串行和并行设置殷紫川2 天前
深入拆解 Java volatile:从内存屏障到无锁编程的实战指南eddieHoo2 天前
查看 Tomcat 的堆内存参数