How to redirect RTC scm command line logs to a different directory?
Currently, when RTC scm commands are run. Taking an example of the following simple queries:
2) logs '<timestamp>.log' are created in <RTCEclipseClientInstall>\scmtools\eclipse\configuration :
Now, logs mentioned in 1) can be redirected using --config. aka ; scm --config <path>
How to redirect the timestamp logs in 2) i.e., in <RTCeclipseInstall>\scmtools\eclipse\configuration to a different location?
The requirement is to avoid logs being generated in the install path.
Thanks in advance,
scm --non-interactive login -r https://clm501:9443/ccm -u clmadmin -P clmadmin -n clm_5011) logs 'scm0.log' to 'scmN.log' is created in <userLocal>\jazz-scm\logs
scm --non-interactive list connections
2) logs '<timestamp>.log' are created in <RTCEclipseClientInstall>\scmtools\eclipse\configuration :
Now, logs mentioned in 1) can be redirected using --config. aka ; scm --config <path>
How to redirect the timestamp logs in 2) i.e., in <RTCeclipseInstall>\scmtools\eclipse\configuration to a different location?
The requirement is to avoid logs being generated in the install path.
Thanks in advance,
Accepted answer
You need to add the following lines to the scm.ini file -Dosgi.configuration.area=<configuration directory location>
Note: This would change the location of all the files under the configuration directory and not only the log file.
Not sure if there is a way to just change the location of the log file.