Apache commons httpclient - 禁用调试/降低调试级别
我在 Lotus Notes Java 代理中使用 apache commons httpclient,它工作正常。 但是,当建立代理连接时,日志将通过以下行发送垃圾邮件:
[INFO] AuthChallengeProcessor - basic authentication scheme selected
您知道如何禁用集成日志记录或如何设置较低的调试级别吗? 它是 httpclient 本身的“功能”,因此不需要我这边的代码:-)
谢谢。
i am using the apache commons httpclient in a lotus notes java agent and it works fine. BUT when establishing a proxy connection the log will be spamed with the following line :
[INFO] AuthChallengeProcessor - basic authentication scheme selected
Do you know how to disable the integrated loging or how to set a lower debug level ?
Its a "feature" from the httpclient itself, so code from my side is not needed :-)
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您应该能够将日志记录级别设置为垃圾邮件较少的级别。 有一些默认的日志记录选项,所以这取决于日志记录您选择的方法。
听起来您的日志记录级别设置为“调试”或“信息”,应设置为“通知”或更高(以避免信息和低于级别的警告)
you should be able to set the logging level to something less spammy. there are a few default logging options, so it depends on the logging method you chose.
it sounds like your logging level is set to "debug" or "info" and should be set at "notice" or above (to avoid info and below level warnings)
我查看了身份验证 RFC,并读到这是一个不要使用基本身份验证的警告。 所以我认为我需要更改身份验证以不以可读文本提交登录信息。
i have had a look into a authentification rfc and read that this is a warning not to use basic authentification. so i think i need to change the authentification to not submit the login information in readable text.
可以设置 AuthPolicy 优先级:
... snipp....
..snapp....
It is possible to set a AuthPolicy Priority :
... snipp....
..snapp....