@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
相关推荐
白鲸开源3 小时前
Apache SeaTunnel Zeta Engine 的 Basic Auth 是怎么工作的?白鲸开源3 小时前
一文读懂DolphinScheduler插件机制:如何轻松扩展任务类型与数据源用户298698530147 小时前
Java 实现 Word 文档文本查找与高亮标注宇宙之一粟8 小时前
乐企版式文件生成平台plainGeekDev9 小时前
MVC 写法 → MVVMSL_staff9 小时前
3周搭完MES系统:JVS低代码+JVS-IoT物联网的实战记录MacroZheng9 小时前
斩获20w star!Claude Code最强插件,AI编程必备!唐青枫11 小时前
Java Spring WebFlux 实战指南:用 Mono、Flux 和 WebClient 写响应式接口小bo波1 天前
使用Thread子类创建线程 VS 使用Runnable接口创建线程的区别SamDeepThinking1 天前
高并发场景下,CompletableFuture与ForkJoinPool该如何取舍?