CMS Infrastructure Services - Information - How to change the default location of Cast-MS log file
Purpose
This page will help you modify the default location of the Cast-MS log file.
Applicable in CAST Version
| Release | Yes/No |
|---|---|
| 8.3.x | ✅ |
Applicable RDBMS
| RDBMS | Yes/No |
|---|---|
| CSS | ✅ |
Details
Changing the location of the CAST-MSXX.log.txt file
To change the location of the CAST-MSXX.log.txt file from its default location in %TEMP%\CAST\CAST<version_number>, you need to modify three files:
1.CastGlobalSettings.ini
2.cast-ms.ini
3.cast-ms-cli.ini
All three are located in the root of your CAST installation. First make sure that all CAST applications are closed, then proceed as follows:
#CastGlobalSettings.ini
Remove the semi-colon (;) on the line containing CAST_CURRENT_USER_TEMP_PATH
Change the path after the = sign to the location you require:
For example:
; Set current user’s temporary path
CAST_CURRENT_USER_TEMP_PATH=D:\CAST\
Save the CastGlobalSettings.ini file.
#cast-ms.ini and cast-ms-cli.ini
Change the sections -configuration and -data in both files to reflect the change made in CastGlobalSettings.ini (i.e. the locations must be identical):
-configuration
D:/CAST/configurationCASTMS
-data
D:/CAST/workspace
Save the cast-ms.ini and cast-ms-cli.ini files.
#Notes
Please note that changing the CAST_CURRENT_USER_TEMP_PATH in the CastGlobalSettings.ini will affect ALL CAST applications
You cannot use CAST location environment variables (e.g. $CAST_MAJOR_VERSION$ and $CAST_MINOR_VERSION$) in the cast-ms.ini and cast-ms-cli.ini files.
Notes/comments
Please note that changing the CAST_CURRENT_USER_TEMP_PATH in the CastGlobalSettings.ini will affect ALL CAST applications
You cannot use CAST location environment variables (e.g. $CAST_MAJOR_VERSION$ and $CAST_MINOR_VERSION$) in the cast-ms.ini and cast-ms-cli.ini files.