Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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:
scm --non-interactive login -r https://clm501:9443/ccm -u clmadmin -P clmadmin -n clm_501
scm --non-interactive list connections
1) logs 'scm0.log' to 'scmN.log' is created in <userLocal>\jazz-scm\logs

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,

0 votes


Accepted answer

Permanent link
You need to add the following lines to the scm.ini file -Dosgi.configuration.area=&lt;configuration directory location&gt;

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. 
Sunil Kumar R selected this answer as the correct answer

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 17 '14, 12:40 a.m.

Question was seen: 3,116 times

Last updated: Dec 19 '14, 12:58 a.m.

Confirmation Cancel Confirm