Modify the locations of tslogger.properties and the log files

Describes how to use Windows™ Registry keys or environment variables to modify the default locations of the HCL Compass log properties file, tslogger.properties, and the error log and message log files

When the HCL Compass software is installed, the default directories for the tslogger.properties file and the error log and message log files are created, as described in Default locations of the tslogger.properties file and the error log and message log files.

Table 1. Default locations of the tslogger.properties file and the error log and message log files
File Default location
Log properties file, tslogger.properties
On Windows:
install-dir:\HCL\config\log\cqcore\
On the UNIX™ system and Linux™:
/opt/hcl/ccm/compass/config/log/cqcore
Log file
On Windows:
ForCompass Client and Compass for Windows, the default folder location is drive:\Documents and Settings\user\Application Data\hcl\compass\cqcore\log
For the Compass Server, the default folder location is drive:\Documents and Settings\All Users\Application Data\hcl\compass\cqcore\log
On the UNIX system and Linux:
/var/adm/hcl/compass/cqcore/log

On Windows, the default locations of these files are also stored in the following Registry keys:

  • tslogger.properties file:

    HKEY_LOCAL_MACHINE\SOFTWARE\HCL\Compass\log\cqcore\logconfigdir

  • Error log and message log files:

    HKEY_LOCAL_MACHINE\SOFTWARE\HCL\Compass\log\cqcore\logdatadir

You can change the default locations of the tslogger.properties file and the error log and message log files either by changing the values of the Windows Registry keys just mentioned, or by setting the following environment variables (Windows, the UNIX system, and Linux):

  • tslogger.properties file:

    CQ_LOG_CONFIG_DIR

  • Error log and message log files:

    CQ_LOG_DATA_DIR

The environment variable values override the locations specified in the Registry keys.