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.detectLoggerNameMismatch system property to
true. This significant feature was contributed by Alexander
Dorokhine. Added MDC.putCloseable method so that it can be
used as a closeable
resource under Java 7. Added getContext method returning a hashtable in
org.apache.log4j.MDC in the log4j-over-slf4j module. Added JSR305 @Nonnull annotations in LoggerFactory
class. Further annotations are likely to follow.
|