@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
相关推荐
华仔啊6 分钟前
为啥不用 MP 的 saveOrUpdateBatch?MySQL 一条 SQL 批量增改才是最优解xiaoye20182 小时前
Lettuce连接模型、命令执行、Pipeline 浅析beata6 小时前
Java基础-18:Java开发中的常用设计模式:深入解析与实战应用Seven976 小时前
剑指offer-81、⼆叉搜索树的最近公共祖先雨中飘荡的记忆1 天前
保证金系统入门到实战Nyarlathotep01131 天前
Java内存模型暮色妖娆丶1 天前
不过是吃了几年互联网红利罢了,我高估了自己NE_STOP1 天前
MyBatis-参数处理与查询结果映射狂奔小菜鸡1 天前
Day40 | Java中的ReadWriteLock读写锁