禁用Quarkus Camel启动信息/横幅

nwnhqdif  于 2023-10-18  发布在  Apache
关注(0)|答案(1)|浏览(118)

我使用Quarkus 3.2.6和Apache Camel 4.0.0。当它启动时,会记录各种启动信息。如何禁用此功能?我已经设置了quarkus.banner.enabled=false,但信息仍然存在。示例输出

Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime
Apache Camel (Main) 4.0.0 is starting
Created default XPathFactory org.apache.xpath.jaxp.XPathFactoryImpl@1eb6e1c
Apache Camel 4.0.0 (camel-1) is starting
Routes startup (started:1)
    Started Test (direct://input)
Apache Camel 4.0.0 (camel-1) started in 87ms (build:0ms init:0ms start:87ms)
test-lambda 1.0.0 on JVM (powered by Quarkus 3.2.6.Final) started in 4.956s.
Profile prod activated.
Installed features: [amazon-lambda, camel-aws2-lambda, camel-core, camel-direct, camel-http, camel-log, camel-stax, camel-xpath, camel-xslt, camel-xslt-saxon, cdi, logging-json]

编辑:到目前为止,我已经尝试通过配置禁用它们。下面,但这并不奏效。

quarkus.log.category."io.quarkus".level=OFF
quarkus.log.category."org.apa.cam".level=OFF
2skhul33

2skhul331#

没有配置选项来专门禁用这些启动消息。但是您可以使用配置属性调整日志级别。

quarkus.log.category."io.quarkus".level=OFF
quarkus.log.category."org.apache.camel".level=OFF

请注意,这将禁用这些类别中的所有日志消息。

相关问题