写入到Eclipse控制台的org.apache.axis过多

时间:2018-10-02 17:16:38

标签: eclipse soap console axis

在Eclipse Juno中,我有一个Web服务客户端。它正在工作,但是org.apache.axis正在向控制台写入大量输出,如下所示:

[org.apache.axis.i18n.ProjectResourceBundle]:org.apache.axis.i18n.resource :: handleGetObject(pushHandler00) [org.apache.axis.encoding.DeserializationContext]:推送处理程序org.apache.axis.encoding.ser.SimpleDeserializer@1f6226 [org.apache.axis.encoding.DeserializationContext]:退出:DeserializationContext :: startElement() [org.apache.axis.encoding.DeserializationContext]:输入:DeserializationContext :: endElement(http://nj.ids.clps,getVersionReturn) [org.apache.axis.i18n.ProjectResourceBundle]:org.apache.axis.i18n.resource :: handleGetObject(popHandler00) [org.apache.axis.encoding.DeserializationContext]:弹出处理程序org.apache.axis.encoding.ser.SimpleDeserializer@1f6226 [org.apache.axis.i18n.ProjectResourceBundle]:org.apache.axis.i18n.resource :: handleGetObject(setValueInTarget00) [org.apache.axis.encoding.DeserializerImpl]:在目标org.apache.axis.message.RPCParamTarget@64ea66中设置值1.0.11.4 ICW Web服务 [org.apache.axis.encoding.DeserializationContext]:将元素堆栈弹出到org.apache.axis.message.RPCElement:getVersionResponse [org.apache.axis.encoding.DeserializationContext]:退出:DeserializationContext :: endElement() [org.apache.axis.encoding.DeserializationContext]:输入:DeserializationContext :: endElement(http://nj.ids.clps,getVersionResponse) [org.apache.axis.i18n.ProjectResourceBundle]:org.apache.axis.i18n.resource :: handleGetObject(popHandler00) [org.apache.axis.encoding.DeserializationContext]:弹出处理程序org.apache.axis.message.RPCHandler@1901437 [org.apache.axis.i18n.ProjectResourceBundle]:org.apache.axis.i18n.resource :: handleGetObject(setProp00)

有人知道如何控制此输出吗?

1 个答案:

答案 0 :(得分:0)

通常,这是通过配置日志库来解决的。

所有以org.apache.axis开头的记录器将设置为日志级别警告

  • Log4j XML配置(log4j.xmllog4j2.xml

    <Logger name="org.apache.axis" level="warn" />
    
  • Slf4j XML配置(logback.xmllogback-test.xml

    <logger name="org.apache.axis" level="WARN" />