@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
相关推荐
二哈赛车手4 小时前
新人笔记---ApiFox的一些常见使用出错为何创造硅基生物5 小时前
C语言 结构体内存对齐规则(通俗易懂版)吃好睡好便好5 小时前
在Matlab中绘制横直方图栗子~~5 小时前
JAVA - 二层缓存设计(本地缓冲+redis缓冲+广播所有本地缓冲失效) demo星寂樱易李5 小时前
iperf3 + Python-- 网络带宽、网速、网络稳定性YDS8295 小时前
DeepSeek RAG&MCP + Agent智能体项目 —— RAG知识库的搭建和接口实现仰泳之鹅5 小时前
【C语言】自定义数据类型2——联合体与枚举之歆6 小时前
DAY_12JavaScript DOM 完全指南(二):实战与性能篇未若君雅裁6 小时前
MyBatis 一级缓存、二级缓存与清理机制cen__y7 小时前
Linux12(Git01)