@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
相关推荐
文丑颜不良啊3 小时前
LeetCode2981~3000题目解析nice_lcj5204 小时前
【从零理解 Spring AI · 13】RAG 要解决什么:把“闭卷考试“变成“开卷“pps-key4 小时前
网络攻防入门:从“黑客梦”到合法实操(生存篇)学长毕设5 小时前
基于SpringBoot军事纪念馆管理系统设计与实现-附源码汤姆宝库5 小时前
BPE分词器的完整实现:字节对合并与词表构建这个昵称不容易6 小时前
SpringBoot 医疗病历交互系统的设计与实现:192 个 Java 文件、256 个接口、22 张表,附真实运行截图驭渊的小故事7 小时前
订单服务如何调用商品服务?一次 RestTemplate 跨服务调用入门Sakura_j_h_8 小时前
MCP SDK 2.0 实战:用 MCPServer 搭本地笔记检索服务微笑星河q8 小时前
C++STL【vector】常用接口函数使用和迭代器失效问题Eider19989 小时前
Python基础语法之并发相关3