Spring Integration日志记录-如何解决问题

时间:2019-12-30 03:54:04

标签: spring-integration maven-jetty-plugin

我有一个Spring集成应用程序,它在Jetty中运行。我也将logback用于记录目的。

该应用程序具有HealthCheck Api,然后作为核心功能从Kafka中提取消息并进行处理。

 <int:channel id="fromKafka"/>
  <int-kafka:message-driven-channel-adapter
  id="kafkaInboundChannelAdapter"
  listener-container="concurrentKafkaMessageListenerContainer"
  auto-startup="true"
  phase="100"
  send-timeout="5000"
  mode="record"
  channel="consumerChannel"
  message-converter="messageConverter"
  error-channel="errorChannel"/>
 <bean id="messageConverter"

在运行集成测试时,将正确创建用于调用HealthCheck API和测试类的日志,但在启动码头服务器来处理开发中的Kafka消息时,将无法正常工作;使用jetty-maven-plugin。

任何人都可以指导我进行故障排除吗?似乎应该有附加的配置来连接Spring Integration生成的日志。

欢呼 克里斯

0 个答案:

没有答案