禁用 Quarkus Camel 启动信息/横幅

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

我正在使用 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
apache-camel quarkus
1个回答
2
投票

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

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

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

© www.soinside.com 2019 - 2024. All rights reserved.