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

Write to RRDG log from an RPE template?

 Greetings All,

Is it possible to write a line of custom text to the RRDG log from an RPE template during report generation in RDNG?

Thanks very much

0 votes


Accepted answer

Permanent link
You may need to configure RRDG to log additional information as explained in https://rpeactual.com/2014/11/26/how-to-enable-dng-debugging-for-document-generation/

In RPE template, you can insert a "JavaScript Code" element. Double click and in the Script expression tab, select the _sessionLogger variable and enter the script. You can generate log entries with one of the following methods:
_sessionLogger.debug(message)
_sessionLogger.info(message)
_sessionLogger.error(message)
_sessionLogger.warn(message)

ex: _sessionLogger.warn("This will be shown in the rpe.log file");
Allen Earnest selected this answer as the correct answer

3 votes

Comments

 Exactly what I was looking for.  Thanks very much Subramanya!

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
× 12,019
× 332

Question asked: Aug 17 '16, 4:37 p.m.

Question was seen: 3,394 times

Last updated: Feb 22 '23, 1:03 a.m.

Confirmation Cancel Confirm