我收到以下错误:
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console.
我在 GWT 应用程序中使用 eclipse V4.3.2。 log4j-api-2.4.1.jar 和 log4j-core-2.4.1.jar 都位于类路径中。
我看过其他与我的错误类似的帖子,但我不清楚我做错了什么(如果有的话)。
谢谢
最佳答案
类路径是不够的(实际上是错误的),您需要 WAR 的 WEB-INF
中的服务器代码(准确地说是 WEB-INF/lib
)。
关于java - 使用 log4j-core-2.4.1 时是否需要 log4j-core,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33175467/