Sometime customers will have multiple VSE's on same machine and want to have separate vse and vse_matches.log files for different VSE's. This article will provide information on how to achieve that functionality.
How to configure different vse.log and vse_matches.log files for multiple VSE's.
All supported DevTest releases on Windows
There are multiple ways you can configure different vse and vse_matches files. We recommend the below options:
1.Option - Maintain separate logging.properties
-----------------------------------------------------------------
. Maintain a separate logging.properties file per VSE
. Ensure the vse_matches.log file name are different in each logging.properties file
. Update the VSE.vmoptions file to point to the right logging.properties file.
. Update VSE.vmoptions with LISA_LOG property to use different VSE log file.
For example: You have 2 VSE's (VSE1 & VSE2)
* VirtualServiceEnvironmentService.vmoptions is using logging_vse1.properties
. In logging_vse1.properties the below property is modified
log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches.log ==> log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches1.log
* VirtualServiceEnvironmentService2.vmoptions, is using logging_vse2.properties
. In logging_vse2.properties the below property is modified
log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches.log ==> log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches2.log
2. Option - In case if you would want to maintain only one logging.properties file
----------------------------------------------------------------------------------------------------------
. Set the value of that file name argument in the VSE.vmoptions
-DLISA_VSEMATCHES_LOG=vse_matches1
. Ensure the vse_matches file names set in the vmoptions files are unique.
. Then parameterize the vse_matches file name in the logging.properties file as below
log4j.appender.VSEAPP.File=${lisa.tmpdir}/${LISA_VSEMATCHES_LOG}.log
For example: You have 2 VSE's (VSE1 & VSE2)
* VirtualServiceEnvironmentService.vmoptions is using default logging.properties
* VirtualServiceEnvironmentService2.vmoptions, is same logging.properties also
. Modify the below property in logging.properties.
log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches.log ==>log4j.appender.VSEAPP.File=${lisa.tmpdir}/${LISA_VSEMATCHES_LOG}.log
How To Run Multiple VSE, Coordinator and Simulator Services on a Single Server
What we suggest is to copy vmoptions from the launchers folder