@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
相关推荐
火云洞红孩儿6 小时前
告别界面孤岛:PyMe如何用一站式流程重塑Python GUI开发?正在努力Coding6 小时前
SpringAI - 工具调用叫我辉哥e16 小时前
新手进阶Python:办公看板集成ERP跨系统同步+自动备份+AI异常复盘晚风吹长发7 小时前
初步了解Linux中的命名管道及简单应用和简单日志C++ 老炮儿的技术栈7 小时前
不调用C++/C的字符串库函数,编写函数strcpy我尽力学7 小时前
面试 总结爬台阶的蚂蚁7 小时前
Spring AI Alibaba基础概念布局呆星7 小时前
闭包与装饰器计算机学姐7 小时前
基于SpringBoot的演唱会抢票系统fyzy7 小时前
C++写后端实现,实现前后端分离