Multiple logging.properties file for each VSE component

book

Article ID: 38124

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

Question 

    When I start multiple VSE components in my environment, each VSE component is writing matches details to a single vse_matches.log file. Is there any way to create a separate log for each VSE matches log? 

Answer: 

 

   To create a separate log file for each VSE component, you need to create logging.properties file for each component. To do this, we need to add below property in each VirtualServiceenvironment.vmoptions file and restart all Devtest components.

 

       -Dlog4j.configuration=<path_to_logging.properties_file>

 

Ex:

 

       -Dlog4j.configuration=C:/DevTest8.2/DevTest8.2/my.logging2.properties

 

In my.logging.properties file, give match file details as:

 

log4j.additivity.VSE=false

log4j.appender.VSEAPP=com.itko.util.log4j.TimedRollingFileAppender

log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse2_my_matches.log

log4j.appender.VSEAPP.MaxFileSize=1KB

log4j.appender.VSEAPP.MaxBackupIndex=20

log4j.appender.VSEAPP.layout=org.apache.log4j.EnhancedPatternLayout

log4j.appender.VSEAPP.layout.ConversionPattern=%d{ISO8601}{UTC}Z (%d{HH:mm})[%t] %-5p - %m%n

Environment

Release: LSASVR99000-8.1-LISA-Server
Component: