@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
相关推荐
jimy13 小时前
c++的 Type Traits (二、更详细版本)狗凯之家源码网3 小时前
纯 PHP+MySQL 应用市场系统源码实测!dishugj3 小时前
系统架构风险点、敏感点和权衡点的概念和区分苜蓿muxu3 小时前
常用代码命名规范geovindu4 小时前
rust:Memento Pattern(续)马优晨4 小时前
JAVA 中 VO 实体类是什么意思,为什么要做这个Aurorar0rua4 小时前
CS50 x 2024 Notes Python - 01Baron X4 小时前
Eclipse Temurin 21 (JRE) Alpine 镜像获取、离线导入与推送操作孙浩君4 小时前
我用 Spring Boot + xterm.js 写了个终端风格互动叙事游戏引擎:游戏即文件,上传一个 JSON 就能玩