这是第三方应用程序在我们的应用程序服务器上生成大量的logentries。像这样:
It's a third party application generating huge amounts of logentries on our appserver. Like this:
[03.03.10 15:21:57:250 CET] 00000180 FtpProtocolHa I org.slf4j.impl.JCLLoggerAdapter info Close connection : 10.227.10.10 - admin [03.03.10 15:27:35:209 CET] 00000181 MinaFtpProtoc I org.slf4j.impl.JCLLoggerAdapter info [/10.227.10.10] CLOSED ++++如何关闭slf4j的输出?我查看了.war文件,找到slf4j的一些配置,但没有。他们的网站没有帮助
How do I turn this output from slf4j off? I've looked in the .war-file to find some configuration for slf4j but nothing. Their website didn't help either
推荐答案slf4j只是实际日志后端的漏斗(这里重写jakarta commons日志记录),这是您必须配置以摆脱某种消息的那个。对于logback,这是相应的配置代码段:
slf4j is just a funnel to the actual log backend (here overriding jakarta commons logging), which is the one you must configure to get rid of a certain kind of messages. For logback this is the appropriate configuration snippet:
<!-- No Tomcat debug logs --> <configuration> ... <logger name="org.apache.catalina.core" level="OFF" /> ... </configuration>对于log4j,它非常相似。
For log4j it is very similar.
更多推荐
如何关闭slf4j的日志记录
发布评论