Apache Camel/Spring boot 禁用跟踪

问题描述 投票:0回答:3

在我的 Apache Camel/Spring Boot 应用程序控制台中,我看到大量的骆驼跟踪,从下面开始。根据 thiscamel.springboot.tracing=false 应该禁用它,但它不起作用。寻找禁用跟踪的正确方法。

[http-nio-0.0.0.0-8080-exec-1] INFO org.apache.camel.Tracing
spring-boot apache-camel spring-camel
3个回答
0
投票

如果您使用 logback.xml,

尝试一下:

<logger name="org.apache.camel" level="Error" additivity="false">
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="FILE"/>
</logger>

如果是 log4j.properties 那么:

log4j.org.apache.camel=Error

0
投票

通过从

<camel:camelContext trace="true">

中删除trace="true" 解决了问题

0
投票
camel:
  springboot:
    tracing: false
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.