LISA Step logger is not getting rolled over

book

Article ID: 212067

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

LISA Step Log file is not getting rolled over. We have configured the size to 10 MB but its not limiting to 10 MB. 

log4j.logger.com.itko.lisa.test.StepLogger=DEBUG, A2
log4j.additivity.com.itko.lisa.test.StepLogger=false
log4j.appender.A2.MaxFileSize=10MB
log4j.appender.A2.MaxRollFileCount=10

Environment

Release : 10.6

Component :

Resolution

Please raise a support ticket to get the new logging jar file (log4j-rolling-appender-20150607-2059.jar) and follow below instructions verify the issue.

 

1)  Put this jar ( log4j-rolling-appender-20150607-2059.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

 

3)   Stop Devtest components.

4)   Rename existing log file "steplog.log" to steplog_bak.log.

5)  Start Devtest components and verify the issue.