RPE: _sessionLogger throws error
I am using RPE 7.0.0.
Throws error in Console:
CRRPE3022E The JavaScript expression could not be evaluated.
ReferenceError: "_sessionLogger" is not defined. (src1#558)
In rpe.log
13-07-2022T16:53:56:888 [RRDG_1:334-CORE] CRRPE3022E The JavaScript expression could not be evaluated. ReferenceError: "_sessionLogger" is not defined. (src1#558) org.mozilla.javascript.EcmaError: ReferenceError: "_sessionLogger" is not defined. (src1#558)
How to write debugging content into rpe.log, console log is getting cleared every few minutes, even if the limit is increased.
One answer
Looks like RPE internal variable "_sessionLogger" is not selected. Please open the Script Expression and select the checkbox for _sessionLogger. 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");