使用GWT调试模式和logback禁用httpclient连线内容日志 [英] Disable httpclient wire content log using GWT debug mode and logback
问题描述
在调试模式下使用GWT时,我从httpclient线获取大量日志。
我使用了logback。
When using GWT on debug mode, I'm getting lots of logs from the httpclient wire. I'm using logback.
我在这里跟几个对话讨论了如何通过将apache httpclient线路记录器级别设置为WARN来禁用此记录,为我工作。
我也尝试将logback root级别设置为INFO - 但我仍然从httpclient获取DEBUG级别。
I followed several conversations here how to disable this logging by setting the apache httpclient wire logger level to WARN, but it doesn't work for me. I also tried to set up the logback root level to INFO - but I'm still getting DEBUG levels from the httpclient.
任何设法禁用httpclient使用logback的GWT上的线记录器?
Anyone managed to disable the httpclient wire logger on GWT using logback?
这是我试过的:
This what I've tried:
<logger name="org.apache" level="WARN" />
<logger name="org.apache.axis2" level="WARN" />
<logger name="org.apache.axiom" level="WARN" />
<logger name="httpclient.wire" level="WARN" />
<logger name="org.springframework" level="warn" />
<root level="INFO">
<appender-ref ref="${logback.appender}" />
</root>
感谢,
本
推荐答案
正如我发现的,您需要将logback.xml添加到GWT运行配置类路径中......
As I found out, you need to add the logback.xml to the GWT run configuration classpath...
这篇关于使用GWT调试模式和logback禁用httpclient连线内容日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!