@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
相关推荐
多加点辣也没关系7 小时前
JavaScript|第41章:性能优化实战Resean02237 小时前
架构设计系列(十六):DDD 与代码架构学长毕设8 小时前
基于SpringBoot 车辆租赁系统平台-附源码码途行者8 小时前
每天10分钟学Go:第22课 自定义错误23图8 小时前
C 语言开散列表(拉链法)拆解:链挂得没错,key=-1 会去读 T[-1]feixing_fx9 小时前
解构与展开:可读性和性能的取舍小飞在努力9 小时前
【实现负载均匀在线判题③】从零散模块到统一,编译运行全链路封装Flynt10 小时前
Spring AI Alibaba 真停更了?我把它的 GitHub 翻了个底朝天饮水桶_T13 小时前
C++ stack & queue复习笔记她的男孩13 小时前
Spring Boot 接 Flowable:请假单要同时走财务和行政,包容分支和默认分支怎么配