I have a Java API library. The library intended to test functionalities of a device. Later these libraries are exposed as webservices so that non-java programs can also access it. I have a single EAR which contains the beans and dependent libraries and this EAR is deployed in to a weblogic server.
Simultaneously we are testing these webservices for multiple devices from multiple agent machines and all the logs from the library and captured in the weblogic console log file. I've configured log4j in the weblogic server. Now the issue I am facing is that, I am unable distinguish from which devices/ip these logs are from.
What is the better way to identify the logs based on device MAC/IP ? I googled and got inputs like log4j MDC can be used for this application. Since I don't have any servlet written by me, I am not sure whether I can proceed with MDC.
Please guide me to choose the best way to configure logs per MAC/IP.