@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
相关推荐
jinyishu_1 小时前
C++ 继承全解:从基础到高级特性接着奏乐接着舞2 小时前
大模型开发 agent 知识库xuhaoyu_cpp_java2 小时前
SpringBoot学习(四)plainGeekDev2 小时前
kapt 替换为 KSP蜡台3 小时前
通过Gradle脚本声明更改Java变量小喻同学i3 小时前
std::thread函数参数传递程序员天天困3 小时前
后端视角看 EventBus:发布订阅总线的原理、场景与用法要开心吖ZSH3 小时前
AI医疗分诊与健康咨询助手agent开发——(4-2)从零到一:我给AI医疗分诊助手加了个“知识库大脑“,终于搞懂了RAG是什么AI人工智能+电脑小能手4 小时前
【大白话说Java面试题 第179题】【07_Redis篇】第15题:什么是 Redlock 算法?Ulyanov4 小时前
Python实现6-DOF刚体仿真器(下)——环境扰动与控制闭环