hi,
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 3 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
thanks.
Raymond DeCampo - 24 Feb 2006 13:26 GMT
> hi,
> i have an application that listens on a specific port to do its task.
[quoted text clipped - 17 lines]
> myApp-port1311.log
> myApp-port1411.log
The short answer is yes. The long answer is that I can't tell you
exactly how to do it, but perhaps the folks at the log4j-users mailing
list (log4j-users@logging.apache.org) can. See http://www.apache.org/
for subscription info.
HTH,
Ray

Signature
This signature intentionally left blank.