Posted: Fri Jan 16, 2015 2:46 am Post subject: Configuring Log4j Node and Fetch thread Id for logging
Acolyte
Joined: 30 Apr 2014 Posts: 67
hi everone,
Recently I have used log4j node for logging purpose. I followed all the steps and was able to sucessfully produce logs. But I encountered two issues.
1. I must provide full / absolute path of config brokerlog.xml file in Log4jConfigFile property, even this file is placed under broker classpath (C:\Program Data\IBM\MQSI). I tried by just giving 'brokerlog.xml' in this property but don't work. So do is it log4j node limitation that it requires abolute path?
2. Second thing is that I want to write Thread Id along with my message in logs. How I can get thread id? I am using following format in LogText field
$ESQL:InputRoot.DFDL.ISO8583_1987$
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