If the TDM portal is installed to a drive other than "C:", by default the portal log files still get written to "C:\ProgramData\CA\CA Test Data Manager Portal".
This article explains the changes that need to be made so that all the log files that are related to the TDM portal service (including third-party application logs such as Tomcat), are written to a user-defined location.
TDM Portal from 3.X to 4.9.X 4.10.X
NOTE: Please take a backup of all the files before modification. Preferably backup the files and copy them to a location outside of the CA Test Data Manager Portal folder (which is located at "C:\Program Files\CA\CA Test Data Manager Portal" by default).
Change or SET the system environment variable CATDMWEB_APPDATA to the path where you want your log files to be written. An example screenshot for doing this through the Windows control panel is shown below:
Next, modify following files manually:
File Location (Replace C: with your installation location) |
Lines to be modified |
C:\Program Files\CA\CA Test Data Manager Portal\orientdb\config\orientdb-server-log.properties
|
java.util.logging.FileHandler.pattern=C:/ProgramData/CA/CA Test Data Manager Portal/orientdb/log/orient-server.log
|
C:\Program Files\CA\CA Test Data Manager Portal\service\conf\wrapper.conf
|
wrapper.java.additional.4=-Djava.io.tmpdir="C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/temp" |
C:\Program Files\CA\CA Test Data Manager Portal\tomcat\conf\logging.properties |
1. catalina.org.apache.juli.AsyncFileHandler.directory = C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/logs 2. localhost.org.apache.juli.AsyncFileHandler.directory = C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/logs 3. manager.org.apache.juli.AsyncFileHandler.directory = C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/logs 4. host-manager.org.apache.juli.AsyncFileHandler.directory = C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/logs |
C:\Program Files\CA\CA Test Data Manager Portal\tomcat\conf\server.xml |
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" workDir="C:\ProgramData\CA/CA Test Data Manager Portal/tomcat/work" startStopThreads="0">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="C:\ProgramData\CA/CA Test Data Manager Portal/tomcat/logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b"/> (If they are already defined with environment variable ${CATDMWEB_APPDATA}, then it is not needed to change.) |
C:\Program Files\CA\CA Test Data Manager Portal\conf\application.properties |
Uncomment tdmweb.publish.folder property and set it to tdmweb.publish.folder=${CATDMWEB_APPDATA} |
If you face any issues following these steps, please open a support ticket through https://support.broadcon.com or by calling CA Customer Care using one of the numbers listed on this page: https://ca-broadcom.wolkenservicedesk.com/web-form.