如何在quarkus应用程序日志中添加slf4j标记

问题描述

使用quarkus 1.5.2最终版

LoggerFactory.getLogger("test").info(MarkerFactory.getMarker("TEST_MARKER"),"log statement");

此记录为:

2020-09-12 21:08:08,282 INFO [测试](executor-thread-1)日志语句

我还想在此日志行中包含TEST_MARKER。 不幸的是,Quarkus日志指南甚至没有谈论标记。 我的application.properties看起来像这样

    quarkus.http.port=8181
quarkus.http.access-log.enabled=true
quarkus.resteasy.gzip.enabled=true
quarkus.native.additional-build-args =-H:ReflectionConfigurationFiles=reflection-config.json
microprofile.rest.client.disable.default.mapper=true

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)