SLF4J 1.7.8 发布了,该版本可自动检测和报告类和 logger 名称之间的不匹配,详情请看
http://www.slf4j.org/codes.html#loggerNameMismatch
下载地址:
http://www.slf4j.org/download.html
详细改进记录:
Spot incorrectly named loggers by setting the
slf4j.detectLoggerNameMismatchsystem property to true. This significant feature was contributed by Alexander Dorokhine.Added
MDC.putCloseablemethod so that it can be used as a closeable resource under Java 7.Added
getContextmethod returning a hashtable in org.apache.log4j.MDC in the log4j-over-slf4j module.Added JSR305 @Nonnull annotations in
LoggerFactoryclass. Further annotations are likely to follow.
引用来自“DuLerWeil”的评论
<!--commons-logging/log4j1/slf4j bridge to log4j2--><dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jcl</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jcl</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.1</version>
</dependency>
真正做个自己系统。这才是 yunos