I have a project with the 2 java classes having main method. These 2 classes are to be executed for 2 different purposes on the same machine at same time in different java process. These process share the same log4j.properties file as :
However , when I executed one java class, it is logging to both the log files as Log1 & Log2. How should I configure this in java code, so that 1st java class/process will log to Log1.log and 2nd to Log2.log?