【发布时间】:2018-12-11 20:08:24
【问题描述】:
我已经安装了最新版本的 Eclipse。我已经按照我喜欢的方式配置了它,当我启动它时,我收到 2 条关于 log4j 未正确初始化的消息。我在 eclipse.ini 文件中添加了 -Dlog4.debug=true ,这并没有给我任何额外的见解。我得到了输出:
log4j: Trying to find [log4j.xml] using context classloader org.eclipse.osgi.internal.framework.ContextFinder@6159286e
log4j: Trying to find [log4j.xml] using org.eclipse.osgi.internal.loader.EqunioxClassLoader@5834198f[org.apache.log4j:1.2.15.v201012070815(id=55)] class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader org.eclipse.osgi.internal.framework.ContextFinder@6159286e
log4j: Trying to find [log4j.properties] using org.eclipse.osgi.internal.loader.EqunioxClassLoader@5834198f[org.apache.log4j:1.2.15.v201012070815(id=55)] class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Could not find resource: [null].
log4j:WARN No appenders could be found for logger (com.spotify.docker.client.DockerConfigReader).
log4j:WARN Please initialize the log4j system properly.
我尝试了一些方法,包括在 org.apache.log4j 所在的位置(/usr/lib/eclipse/plugins)添加一个 log4j.properties 文件。我还尝试将一个放在我的主目录中。我还验证了 log4j.rootLogger=OFF。似乎没有任何效果。
【问题讨论】:
标签: eclipse ubuntu-14.04