Pete:
You can use parameter substituion in the configuration file to determine
the path of the log file(s). For example:
# A1 is set to be a RollingFileAppender for debugging noise.
log4j.appender.A1=org.apache.log4j.RollingFileAppender
log4j.appender.A1.File=${user.debugLog}
Have you tried variable substitution within a layout pattern in the
configuration file? I tried a quick test similar to
...ConversionPattern=[%t] %-5p %c - ${user.name} - %m%n
and the value of the System Property user.name was substituted in my log
file.
Hello:
The configuration class can read a system property and substitute it. You
can build a unique log name for each instance of the application, assign it
to a system property, and use that value for the log file name.
Regards
Bill Blalock