It's all about the answers!

Ask a question

Write to RRDG log from an RPE template?


Allen Earnest (6211937) | asked Aug 17 '16, 4:37 p.m.
 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

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k14) | answered Aug 18 '16, 1:50 a.m.
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

Comments
Allen Earnest commented Aug 18 '16, 9:55 a.m.

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

Your answer


Register or to post your answer.