@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
相关推荐
子夜四时歌1 小时前
Python详细安装与环境搭建Jinkxs1 小时前
SkyWalking - Python 应用追踪:基于 skywalking-python 的埋点大头博士先生1 小时前
【3月考】二级Python最新真题及满分代码合集(基本操作题部分)xcLeigh1 小时前
IoTDB Python原生接口全攻略:从基础读写到高级实战User_芊芊君子1 小时前
文科生封神!Python+AI 零门槛变现:3 天造 App,指令即收入(附脉脉 AI 沙龙干货)是Dream呀1 小时前
2025年中秋月亮只有94.91%圆?Python告诉你真相星辰徐哥1 小时前
Python开发从入门到精通:异步编程与协程AI智能研究院1 小时前
Python系列进阶教程(一)Python 面向对象郁大锤1 小时前
Windows 环境下安装 Python 与环境变量配置李德没德1 小时前
零基础快速入门Python:从安装到写出第一个程序