Spring集成-部署到Pivotal Cloud Foundry中时,Wiretap不会记录日志

时间:2019-11-13 18:40:39

标签: spring-integration slf4j spring-boot-actuator pcf

当消息流通过通道时,我们正在尝试使用窃听拦截器记录消息。窃听可以在本地运行时以某种方式完美地登录到控制台,但是当部署到PCF环境时,无法看到日志。下面是parsing.xml配置。

<int:channel id="logChannel"></int:channel>

<int:message-history/>

<int:wire-tap id="globalWireTap" channel="logChannel" pattern="*"/>
<int:logging-channel-adapter channel="logChannel" level="WARN" expression="headers.history" />

使用的记录依赖项是:

<!-- Logging dependencies -->
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
        <groupId>com.****</groupId>
        <artifactId>logging-impl-spring-4</artifactId>
        <version>1.1-*</version>
        <scope>runtime</scope>
    </dependency> 

0 个答案:

没有答案