Browse Source

KERNEL-9862 补上被误删的代码

feature/x
xiqiu 3 years ago
parent
commit
36805e2dbf
  1. 1
      fine-druid/src/main/java/com/fr/third/alibaba/druid/support/logging/LogFactory.java

1
fine-druid/src/main/java/com/fr/third/alibaba/druid/support/logging/LogFactory.java

@ -41,6 +41,7 @@ public class LogFactory {
// 优先选择log4j2防止漏洞
tryImplementation("com.fr.third.apache.logging.log4j.Logger", "FRLog4j2Impl");
// 优先选择log4j,而非Apache Common Logging. 因为后者无法设置真实Log调用者的信息
tryImplementation("com.fr.third.apache.log4j.Logger", "FRLog4jImpl");
tryImplementation("org.slf4j.Logger", "com.fr.third.alibaba.druid.support.logging.SLF4JImpl");
tryImplementation("org.apache.log4j.Logger", "com.fr.third.alibaba.druid.support.logging.Log4jImpl");
tryImplementation("org.apache.logging.log4j.Logger", "com.fr.third.alibaba.druid.support.logging.Log4j2Impl");

Loading…
Cancel
Save