https://logging.apache.org/log4j/2.x/log4j-slf4j-impl.html
log4j-slf4j-impl should be used with SLF4J 1.7.x releases or older. log4j-slf4j2-impl should be used with SLF4J 2.0.x releases or newer. ------------------------- https://logging.apache.org/log4j/2.x/download.html Log4j 2.12.4 was the last 2.x release to support Java 7 Log4j 2.3.2 was the last 2.x release to support Java 6.
我用的jdk7,所以只能用Log4j 2.12.4 和 SLF4J 1.7.36版本。
------------------------- <dependency> <groupId>com.lmax</groupId> <artifactId>disruptor</artifactId> <version>3.3.4</version> </dependency> https://lmax-exchange.github.io/disruptor/changelog.html 还有disruptor,具体没看出来。 4.0版本必须java 11了。 3.3.4版本试了jdk7也可以。 ------------------------- Log4j 2.12.4,我用的tomcat7.0.72竟然报错: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:97)
tomcat7.0.82版本就没问题,伤不起啊。 不过,报错貌似也没啥影响,日志正常打,莫名其妙。 ------------------- tomcat7.0.72时,试了半天。 Log4j 2.12.0,报错 Log4j 2.11.0,报错 Log4j 2.10.0,报错 Log4j 2.9.1,OK 所以,最终使用了2.9.1版本。 -------------------
|