search cancel

Change TDM Portal log folder location outside CATDMWEB_APPDATA

book

Article ID: 244180

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

How to configure the following TDM Portal log path locations:
C:\ProgramData\CA\CA Test Data Manager Portal\logs
C:\ProgramData\CA\CA Test Data Manager Portal\tomcat\logs

to: 
C:\tdmlogs
C:\tomcatlogs 

Environment

Release : 4.10

Component : TDM Web Portal

Resolution

CHANGE: C:\Program Files\CA\CA Test Data Manager Portal\conf\logback-tdm.xml
FROM:   <property name="LOG_HOME" value="${CATDMWEB_APPDATA}/logs/" />
TO:     <property name="LOG_HOME" value="C:/tdmlogs/" />
  
CHANGE: C:\Program Files\CA\CA Test Data Manager Portal\tomcat\conf\server.xml
FROM:   <Valve className="org.apache.catalina.valves.AccessLogValve" directory="${CATDMWEB_APPDATA}/tomcat/logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b"/>
TO:     <Valve className="org.apache.catalina.valves.AccessLogValve" directory="C:/tomcatlogs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b"/>

Note the forward slashes for the folders.