@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
相关推荐
t***54444 分钟前
Clang 编译器在 Orwell Dev-C++ 中的局限性OtIo TALL1 小时前
redis7 for windows的安装教程oy_mail1 小时前
QoS质量配置oyzz1201 小时前
PHP操作redisuNke DEPH2 小时前
Spring Boot的项目结构nashane2 小时前
HarmonyOS 6学习:网络能力变化监听与智能提示——告别流量偷跑,打造贴心网络感知应用xixingzhe22 小时前
idea启动vue项目wzl202612132 小时前
企业微信定时群发技术实现与实操指南(原生接口+工具落地)凌波粒2 小时前
Java 8 “新”特性详解:Lambda、函数式接口、Stream、Optional 与方法引用曹牧2 小时前
Eclipse:悬停提示(Hover)