The system function SysLib.startLog opens an error log. Text is written into that log every time your program invokes SysLib.errorLog.
SysLib.startLog(logFile STRING in)
Related concepts
Syntax diagram for EGL functions
Related reference
EGL library SysLib
errorLog()