I have an application that listens on a specific port to do its task. This application can run on multiple instances by specifying different ports in the argument.
MyApp-1211.bat contains
java MyApp 1211
MyApp-1311.bat contains
java MyApp 1311
MyApp-1411.bat contains
java MyApp 1411
This application logs to a file. The problem is all three instances log
into a single file, myApp.log
. Is there a way to tell log4j to use
different log files? like:
myApp-port1211.log
myApp-port1311.log
myApp-port1411.log