ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ Performance MonitoringLogging using Log4j for multi instance message flows

Post new topicReply to topic
Logging using Log4j for multi instance message flows View previous topic :: View next topic
Author Message
mqusr
PostPosted: Tue Jul 10, 2018 4:49 am Post subject: Logging using Log4j for multi instance message flows Reply with quote

Newbie

Joined: 24 Feb 2018
Posts: 8

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.



Thanks ,

mqusr
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Performance MonitoringLogging using Log4j for multi instance message flows
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.