java - 如何从 jetty 日志中删除 Spring 信息?

标签 java logging jetty

我不断在我的日志文件中收到信息消息。

我正在使用 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/

相关文章:

java - ObjectOutputStream 需要服务器响应吗?

logging - Angular2 记录

linux - 无法使用本地 IP 从本地计算机访问 Eclipse Orion 服务器

jetty - 如何将 CXFNonSpringJaxrsServlet 与 serviceBean 而不是 serviceClass 一起使用?

java - Jetty Endpoint 可以代表除网络连接之外的哪些连接

java - Spring,使用表单打开页面时出现 IllegalStateException

Java - 链表初始化不正确

java - Selenium Webdriver 日志记录

java - ArrayList.containsAll 不使用我的自定义 equals 函数

c - 只有以 2 为底的对数时的自然对数实现