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

Is there any way to disable log file creation for the script based customization in CCM log files?

Hi All,

I am using RTC version 6.0.1 and we have done lot of script based customization for our solution in RTC.

Looking at the CCM log files there are many errors generated when invoking various client side customization.

These errors make the log files very difficult to read and should be minimized as much as possible.

Is there any way to disable error logs generated for client side validations in RTC.

Any help is much appreciated.

Thanks in advance!!

0 votes


Accepted answer

Permanent link
Hi Praveen,

There is no specific property to control the Java Script Customization logging.  Logging in CCM logs is based on log4j and controlled by the log4j.properties file. 

In the log4j.properties file, there is only one property related to Java Script :
################################
#   JavaScript                 #
################################
# Turn on ERROR messages only for JavaScriptDependencyAnalyzer to suppress the dojo circular dependency warning
#log4j.logger.net.jazz.ajax.internal.javascript.JavaScriptDependencyAnalyzer=ERROR

and its disabled by default and does not directly relate to the script based customizations.

You can review the enabled/disabled logging by looking at the
    log4j.properties file
found in the
    <CLMServerInstallation>/server/conf/ccm
directory.

Instead, I would recommend reviewing these script errors.  Script errors could indicate that some business logic enforced on the work item is not functioning anymore and could have its implications to the end users and more....  Best way might be to resolve these errors and get the cleaner logs. 

Unless you are creating place holder scripts, script errors can be resolved by reviewing the configuration or the implementation.  If you see that the script is in good shape but an error is still being reported for it, we may have to review it for a probable defect.  Here I would like to also clarify that at this point (v602), I haven't noticed any such defects that lead to unnecessary logging of errors for script based customizations.

hope this helps
Parveen Patel selected this answer as the correct answer

2 votes

Comments

Hi Dinesh,

Thanks for your detailed answer.

Please suggest on below error message for one of the script written:

Error invoking work item filter 'SupplierMandatoryDependsOnRCRType'
com.ibm.team.repository.common.TeamRepositoryException: Unexpected exception type

do we need to handle all the exception using java script to reduce such type of error messages in log files?

Hi Parveen,

Yes, you would have to handle them...

just found this article.. a little old but thought may be useful to you :
https://jazz.net/library/article/1360

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
× 10,927

Question asked: Sep 08 '16, 2:33 a.m.

Question was seen: 1,427 times

Last updated: Sep 08 '16, 5:01 a.m.

Confirmation Cancel Confirm