search cancel

How to size Rollover arcotAFM.log

book

Article ID: 134085

calendar_today

Updated On:

Products

CA Advanced Authentication - Strong Authentication (AuthMinder / WebFort) CA Strong Authentication CA Rapid App Security CA Risk Authentication CA Advanced Authentication CA API Gateway

Issue/Introduction

arcotafm.log out of the box can only be rollover daily due to which the size of the file becomes huge. To resolve this issue the log can be size rolled over.

Environment

Release :

Component : AuthMinder(Arcot WebFort)

Resolution

Use below properties in your arcotafm-log4j.properties to do size rollover:


### Log File for ArcotAFM ###


log4j.rootLogger=DEBUG, afmout

log4j.logger.com.arcot=DEBUG


#old property

#log4j.appender.afmout=org.apache.log4j.DailyRollingFileAppender


#Newly added##

log4j.appender.afmout=org.apache.log4j.RollingFileAppender


#old property

#log4j.appender.afmout.DatePattern='.'yyyy-MM-dd-HH


log4j.appender.afmout.File=${afm.home}/logs/arcotafm.log

log4j.appender.afmout.layout=org.apache.log4j.PatternLayout

log4j.appender.afmout.layout.ConversionPattern=%d [%t] %-5p %-5c{3}(%L) %x -> %m%n

log4j.appender.afmout.encoding=UTF-8


#Newly added##

log4j.appender.afmout.MaxFileSize=1MB

log4j.appender.afmout.MaxBackupIndex=5

log4j.appender.afmout.append=true


### Set log levels. For more verbose logging, change 'info' to 'debug'. ###

log4j.logger.org.apache.axis2.enterprise=info

log4j.logger.com.arcot.integrations.frontend=info

log4j.logger.com.arcot.integrations.afm.ws.samlsvc=info

log4j.logger.com.arcot.integrations.toksvr.client=info

log4j.logger.com.arcot.webfort.common.api=info

log4j.logger.com.arcot.webfort.authentication.api=info

log4j.logger.com.arcot.webfort.issuance.api=info

log4j.logger.com.arcot.pool=info

log4j.logger.com.arcot.riskfortAPI=info