Posted: Tue Jul 10, 2018 4:49 am Post subject: Logging using Log4j for multi instance message flows
Novice
Joined: 24 Feb 2018 Posts: 20
Hi All,
I have a query regarding logging using log4j node in IIB 10 message flows.
I have a message flow which sends an input to a TCPIPClientOutput node and receives message from TCPIPClientReceive node.
MQInput -> log4j(to log the input msg) -> TCPIPClientOutput -> TCPIPClientReceive ->log4j(to log the output msg) ->MQoutput
The logging pattern that I am using in log4j property file is <param name="ConversionPattern" value="%d %-5p [%-10t] :- %m%n%n"/>
Now I want to increase the number of instances of this flow for faster processing. How can I make out in the logs what is the input and its corresponding output.
In the logs, for all instances, the thread name ([%-10t]) is the same.
2018-07-10 16:16:21,772 DEBUG [default.TestLogging_MF] :- REQUEST IS
2018-07-10 16:16:21,772 DEBUG [default.TestLogging_MF] :- RESPONSE IS
2018-07-10 16:16:21,772 DEBUG [default.TestLogging_MF] :- RESPONSE IS
Is there any parameter that I can specify in the logging pattern which will give me the unique thead id that is created by each instance so that I can easily identify the request response pair.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum