How to enable daily log roll over for Arcot UDS application?

book

Article ID: 36588

calendar_today

Updated On:

Products

CA Rapid App Security CA Advanced Authentication CA API Gateway

Issue/Introduction

Introduction:

Customers have requirement to enable daily log rollover for their application to manage the logs in effective manner. Below are the instructions of how to enable them using log4j properties.

Question:

What are the configuration changes needed to enable daily log roll over for Arcot UDS application?

Environment:

This is applicable to all the versions of UDS application.

Answer:

Follow the below steps to enable daily log roll over for Arcot UDS application

1. Navigate to the directory ARCOT_HOME/conf

2. Open udsserver.ini file in a text editor

3. Look for section "UDS Log Handle" and modify this section to match the following format-

log4j.appender.debuglog=org.apache.log4j.RollingFileAppender

# By default the arcotuds.log file will be created under ARCOT_HOME/logs.

# If a different file is needed, provide the absolute path of the log file.

# Make sure that the provided path exists.

log4j.appender.debuglog=org.apache.log4j.DailyRollingFileAppender

log4j.appender.debuglog.DatePattern='.'yyyy-MM-dd

log4j.appender.debuglog.Encoding=UTF-8

log4j.appender.debuglog.File=${arcot.home}/logs/arcotuds.log

#log4j.appender.debuglog.MaxFileSize=10MB

#log4j.appender.debuglog.MaxBackupIndex=100

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

#log4j.appender.debuglog.Encoding=UTF-8

log4j.appender.debuglog.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS z} : [%t] : %-5p : %-5c{3} : %m%n

 

 

4. Restart the UDS application so these changes take effect.

Environment

Release: ARCWFT05900-8-Arcot-WebFort-for Windows
Component: