My project is in cluster form and while using logger.debug
, I want to know which system has received the request and when I check logs, I should also see system IP as a parameter in logs.
When we use log4j2, inside log file you get time & name of class.
[DEBUG ] 2018-03-05 01:16:43.233 <className>
In this line I also want to know system IP.