@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
相关推荐
huohuopro7 分钟前
idea使用教程NGC_661110 分钟前
ArrayList扩容机制一方热衷.6 小时前
YOLO26-Seg ONNXruntime C++/python推理靓仔建7 小时前
Vue3导入组件出错does not provide an export named ‘user_setting‘ (at index.vue:180:10)HalvmånEver8 小时前
7.高并发内存池大页内存申请释放以及使用定长内存池脱离new凤山老林8 小时前
SpringBoot 使用 H2 文本数据库构建轻量级应用赶路人儿8 小时前
UTC时间和时间戳介绍dreamread8 小时前
【SpringBoot整合系列】SpringBoot3.x整合Swagger6+h9 小时前
【java】基本数据类型与包装类:拆箱装箱机制