@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
相关推荐
摇滚侠33 分钟前
Spring Boot 3零基础教程,创建第一个 Spring Boot 3 应用,Spring Boot 3 外部配置,笔记03superxxd2 小时前
跨平台音频IO处理库libsoundio实践没有bug.的程序员3 小时前
服务网格 Service Mesh:微服务通信的终极进化_OP_CHEN3 小时前
C++基础:(十二)list类的基础使用南尘NCA86666 小时前
企业微信防封防投诉拦截系统:从痛点解决到技术实现ONE_PUNCH_Ge6 小时前
Go 语言变量幼稚园的山代王6 小时前
go语言了解晚风残6 小时前
【C++ Primer】第六章:函数满天星83035776 小时前
【C++】AVL树的模拟实现