I am trying to trace the lifetime of a message in the client application log. That is in my application's onMessage(Message p_message) method I have different log statements which get printed under the thread ID: "ActiveMQ Session Task". Like below: [INFO ] 2018-11-27 16:29:57,642 [ActiveMQ Session Task] HydrationServiceImpl - ===> START: dehydrate [INFO ] 2018-11-27 16:29:57,642 [ActiveMQ Session Task] HydrationDaoImpl - ==> START: countCor [INFO ] 2018-11-27 16:29:57,649 [ActiveMQ Session Task] HydrationDaoImpl - ==> END: countCor [INFO ] 2018-11-27 16:29:57,649 [ActiveMQ Session Task] HydrationDaoImpl - ==> START: purge for id = 82559 [INFO ] 2018-11-27 16:29:57,664 [ActiveMQ Session Task] HydrationDaoImpl - ==> END: purge [INFO ] 2018-11-27 16:29:57,664 [ActiveMQ Session Task] HydrationServiceImpl - ==> END: dehydrate
So if more than 1 message is being worked on then all get the same thread ID:- [ActiveMQ Session Task] Thus there is no way for me to categorize the logs for different messages. Is there a way to be able to tell, for which message consume is the log statement for? -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html