Eclipse Juno p2导演无法禁用完整的调试输出?

时间:2012-10-11 13:27:12

标签: eclipse p2

我试图在新的Eclipse Juno SR1版本中安装插件。由于我想保持最新的几个Eclipse安装,我使用命令行p2 director来安装插件列表:

eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://download.eclipse.org/releases/juno -installIUs org.eclipse.birt.feature.group

但是我总是得到完整的调试输出,包括httpclient.wire.content。

14:54:38.711 [main] DEBUG httpclient.wire.header - << "Content-Type: text/plain[\r][\n]"
14:54:38.712 [main] DEBUG httpclient.wire.header - << "[\r][\n]"
14:54:38.713 [main] DEBUG httpclient.wire.content - << "[0x1f]"
14:54:38.713 [main] DEBUG httpclient.wire.content - << "[0x8b]"
14:54:38.713 [main] DEBUG httpclient.wire.content - << "[0x8]"
14:54:38.713 [main] DEBUG httpclient.wire.content - << "[0x0][0x0][0x0][0x0][0x0][0x3]"
14:54:38.714 [Worker-1] DEBUG httpclient.wire.content - << "u[0x8f]1O[0xc3]0[0x10][0x85][0xf7][0xfc][0x8a][0x87]:t[0xa9],[0x92]J[0x8]*[0xca][0x4];[0x12][0x95]XX[0x8e][0xfa]J[0xc][0x8e]/[0xb2][0xaf][0xa5][0xfd][0xf7]\[0x92]V[0xb0][0xb0][0xd8][0xd2][0xf9]{[0xdf]=[0xcf][0xd0]7.$[0xcf]G[0xec]Bd[0xa8][0xa0][0xf4][0xcc][0x1e][0xda][0x86][0xf4]Q[0xb0][0xef]]5[0xc3]sd*[0x8c]$jDKj[0x7][0xe3]@q[0xcf][0x5]![\r]l[0x99][0xe2][0x9e][0x7][0xa6] s/%[0xa8][0xe4][0x13]v[0xb4][0xb5];[0xd8][0x90][0x92]7[0x97][0x1]#[[0x1c]6f[0x99][0x9e]O[0x98][0xdf]'[0xea][0xf8][0xc1][0x1d][0xbb]8[0xc7]w[0x88][0x11]Q[0xe4][0xb];[0xc9]x[0x17]m[0xc7][0x8d]g[0xe4][0x93][0xb2]y[0xcc][0xf6]wh[0xb9]Q[0xbb][0x98][\n]"

有没有办法禁用输出?我尝试从

开始
-vmargs -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.httpclient.wire.header=fatal -Dorg.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=fatal -Dorg.apache.commons.logging.simplelog.log.httpclient.wire=fatal

我还尝试在eclipse基目录中使用.options文件禁用调试,包含以下内容:

org.eclipse.osg/debug=false
org.eclipse.equinox.p2.core/debug=false
org.eclipse.equinox.p2.engine/debug=false
org.eclipse.equinox.p2.director/debug=false
org.eclipse.equinox.p2.director.app/debug=false
org.eclipse.equinox.p2.repository/debug=false
org.eclipse.equinox.p2.installer/debug=false
org.eclipse.equinox.p2.console/debug=false

但http下载的内容仍然会被转储到我的终端。

1 个答案:

答案 0 :(得分:1)

该日志格式看起来像Logback中的默认模式。如果无法找到配置文件,则Logback默认为非常详细的配置。

您可以使用 logback.configurationFile 属性覆盖回溯配置,例如:

eclipse -application ... -vmargs -Dlogback.configurationFile=/path/to/logback.xml

Logback manual

中列出了一些示例配置