@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
相关推荐
stormsha几秒前
`Could not create connection to database server`:MySQL 8 连不上,真凶藏在第 4 层荣码9 分钟前
多模态应用入门:让AI看懂图片再回答问题,我踩了4个坑用户0723670666026 分钟前
接口级配 50%、方法级配 30%,这个方法实际切多少淘源码A30 分钟前
智能预问诊系统源码,基于SpringBoot、MyBatis-Plus、uni-app等技术栈,开箱即用夏幻灵33 分钟前
Java 学习日记:多态apcipot_rain38 分钟前
C++转Java日记(19)星夜离尘5640 分钟前
MATLAB:前后各滤一次,为什么相位回来了,幅值却变成 0.500?JAVA面经实录9171 小时前
AI 辅助写单元测试星恒随风1 小时前
C++11 加餐(3)并发支持库——atomic 原子操作与内存序详解IT枫斗者1 小时前
浏览器跨域预检 OPTIONS:什么时候触发,为什么被接口拒绝