@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
相关推荐
码途行者7 小时前
每天10分钟学Go:第17课 接口interface-只规定“能做什么“,不管它是什么头发还在的女程序员7 小时前
Java充电桩平台源码解析:枪口状态、上报时间与页面刷新怎样协同timeDifference₇8 小时前
Python Vibe Coding实操实验报告geovindu9 小时前
python:DecisionTreeCosolar9 小时前
从 Java 21 升到 25、Spring Boot 3 升 4:一次可复现的迁移踩坑实录geovindu11 小时前
python: Decision Tree RegressorIT空门:门主11 小时前
LangChain4j 1.24.0 深度解读:新特性、版本对比与学习路线用户37215742613513 小时前
Java 批量操作 Excel 超链接:添加、读取、修改和删除用户37215742613514 小时前
Java 将 Excel 图表导出为图片:指定图表、批量导出与图表工作表炸膛坦客14 小时前
单片机/C/C++八股:(三十七)指针数组 和 数组指针