@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
相关推荐
海盗12342 分钟前
WPF上位机组件开发-设备状态运行图基础版看我干嘛!4 分钟前
python第四次作业Coder_preston4 分钟前
Java集合框架详解多多*8 分钟前
2026年最新 测试开发工程师相关 Linux相关知识点树码小子18 分钟前
SpringIoC & DI (1):IOC介绍 & Spring IoC使用 & DItb_first29 分钟前
万字超详细苍穹外卖学习笔记5铁蛋AI编程实战31 分钟前
ChatWiki 开源 AI 文档助手搭建教程:多格式文档接入,打造专属知识库机器人2301_7634725833 分钟前
实时系统下的C++编程Hx_Ma1634 分钟前
SpringBoot消息转换器扩展fastjsonCoder_preston34 分钟前
Spring/Spring Boot实战:从入门到项目部署