Vote count:
0
I'm using Wire-Tap to handle logging and I'm not allowed to use logging-channel-adapter (hence log4j).
I've the need to add additional informations to the payload that get sent to a gateway that has an interface that handles logs.
Is there a way without specifying a header-enricher in the middle of the flow?
Code for clarification:
The Wire-Tap part
<int:channel id="IN_messageRouterFactory">
<int:interceptors>
<int:wire-tap channel="IN_log_gateway" />
</int:interceptors>
</int:channel>
The logging gateway:
<int:gateway service-interface="foo.bar.loginterface">
<int:method name="log" request-channel="IN_log_gateway" />
</int:gateway>
The logging service:
<int:chain input-channel="IN_log_gateway">
<!-- transformations here... -->
<int:service-activator ref="fileLoggerService"/>
</int:chain>
I would like to add some informations so that I could log specific managed payload informations
asked 2 mins ago
Adding additional information to Wire-Tapped Channels for logging in Spring
Aucun commentaire:
Enregistrer un commentaire