ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

SV Step log file size issue

book

Article ID: 200391

calendar_today

Updated On:

Products

CA Cloud Test Mobile CA Application Test

Issue/Introduction


we have added below properties into logging.properties,

#LISA Step Logger
log4j.logger.com.itko.lisa.test.StepLogger=DEBUG, A2
log4j.additivity.com.itko.lisa.test.StepLogger=false
log4j.appender.A2=org.apache.log4j.RollingFileAppender
log4j.appender.A2.File=D:/LISA_STEP_LOG/Steplog.log
log4j.appender.A2.MaxFileSize=10MB
log4j.appender.A2.MaxBackupIndex=5
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %-30c - %m%n

As we have given the max size 10MB, but log file has creating above 10mb size.
Please look into this and let us know the solution.

Environment

Release : 10.6

Component : CA Service Virtualization

Resolution

We have a patch in 10.6 for this issue,  please refer to DE474848 when opening a ticket. 

Additional Information

 

 

Provided Patch jar named log4j-rolling-appender-20150607-2059.jar.

 Put this jar in

DevTest/lib/shared

Devtest/lib/dradis

Devtest/webserver/phoenix/phoenix-10.6.0/WEB-INF/lib

Devtest/webserver/phoenix/reshub-10.6.0/WEB-INF/lib

 

2. Add these below properties in logging.properties

log4j.logger.com.itko.lisa.test.StepLogger=DEBUG, A2
log4j.additivity.com.itko.lisa.test.StepLogger=false
log4j.appender.A2=uk.org.simonsite.log4j.appender.TimeAndSizeRollingAppender
log4j.appender.A2.File=${lisa.tmpdir}/Steplog.log
log4j.appender.A2.RollOnStartup=true
log4j.appender.A2.DateRollEnforced=true
log4j.appender.A2.Threshold=DEBUG
log4j.appender.A2.DatePattern=.yyyy-MM-dd
log4j.appender.A2.MaxFileSize=10MB
log4j.appender.A2.MaxRollFileCount=10
log4j.appender.A2.ScavengeInterval=30000
log4j.appender.A2.BufferedIO=false
log4j.appender.A2.CompressionAlgorithm=GZ
log4j.appender.A2.CompressionMinQueueSize=5
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p %-23d{ISO8601} [%t] %x: %c{1} – %m%n