我不断在我的日志文件中收到信息消息。
我正在使用 jetty 和 spring。
INFO org.springframework.remoting.support.RemoteInvocationTraceInterceptor - Processing of HessianServiceExporter remote call resulted in exception...
我没有在 tomcat 上收到消息。有没有办法关闭这些消息?
我也在使用 log4j slf4j 和公共(public)日志记录。
当我调试 log4j 时,正在加载正确的配置文件。
另一个日志以某种方式将这些消息添加到文件中...
我认为因为 spring 使用公共(public)日志记录,所以它使用 RemoteInvocationTraceInterceptor 生成信息消息。
无论您在 log4j.xml 中设置什么,通用日志记录不会以某种方式将其发送到 log4j,而是只写入信息。
最佳答案
尝试从您的
中过滤/删除org.springframework.remoting.support.RemoteInvocationTraceInterceptor
关于java - 如何从 jetty 日志中删除 Spring 信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14623649/