java - 如何从wildfly登录中排除io.undertow.request包
问题描述
我收到以下与io.undertow.request包相关的错误日志。
Caused by: java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:51)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153)
at io.undertow.protocols.ssl.SslConduit.doWrap(SslConduit.java:874)
at io.undertow.protocols.ssl.SslConduit.write(SslConduit.java:379)
at io.undertow.server.protocol.http.HttpResponseConduit.processWrite(HttpResponseConduit.java:247)
at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:588)
at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.write(AbstractFixedLengthStreamSinkConduit.java:106)
at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.write(AbstractFixedLengthStreamSinkConduit.java:120)
at io.undertow.conduits.DeflatingStreamSinkConduit.performFlushIfRequired(DeflatingStreamSinkConduit.java:418)
at io.undertow.conduits.DeflatingStreamSinkConduit.flush(DeflatingStreamSinkConduit.java:348)
at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162)
at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:119)
at org.xnio.channels.Channels.flushBlocking(Channels.java:63)
at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:605)
在这种情况下,没有必要在我的 wildfly 日志中查看这些错误。我需要从日志中排除这个包。无论如何我可以为它进行配置吗?
解决方案
如果您不想要任何日志记录,请io.undertow.request
在日志记录子系统的standalone-*.xml 文件中添加以下标记:
<logger category="io.undertow.request">
<level name="OFF"/>
</logger>
推荐阅读
- java - Intellij 中奇怪的 Javadoc 包装
- github - GitHub Pages 正在显示自述文件内容
- python - 加载和编辑用于语法分析的 cfg 文件
- arrays - 对两个索引同步(配对)数组进行排序时,如何维护索引?
- c# - 如何将“Var”数据类型中的项目显示到 ListView 中?
- javascript - 在数组中找到总和等于给定值的最小元素
- java - 正则表达式从响应中获取特定字符串
- amp-html - 点击锚标签无法在 amp 中获取 href 值
- go - 增量构建不适用于 go build,仅适用于 go install
- angular - 无法使用 Angular 应用程序与 Web 上的节点进行交互