Ali*_*ahi 3 java logging log4j log4j2
升级到 log4j2 2.6 版后,我面临以下警告:
2016-06-06 16:36:14,920 localhost-startStop-1 WARN The Logger foo.bar was created with the message factory org.apache.logging.log4j.spi.MessageFactory2Adapter@437958b6 and is now requested with a null message factory (defaults to org.apache.logging.log4j.message.ParameterizedMessageFactory), which may create log events with unexpected formatting.
Run Code Online (Sandbox Code Playgroud)
在 2.5 版本中没问题,有什么评论吗?!
我在附加程序中看到日志消息
这是 Log4j 2.6 版本中的一个错误。它已被修复(请参阅https://issues.apache.org/jira/browse/LOG4J2-1407)并将在即将发布的 2.6.1 版本中修复(目前正在审核中,应该会在大约 48 小时内上线) .
这不是一个真正的问题,错误是不必要地显示警告。