errorLog()

The sysLib.errorLog() system function copies text into the error log that the sysLib.startLog() system function started.

If you do not run sysLib.startLog() first, sysLib.errorLog() has no effect.

EGL automatically precedes each entry with the time and date on a separate line. See "Example" in this topic.

Syntax

  sysLib.errorLog(text STRING in)
text
Input can be any variable or expression that is assignment compatible with the STRING type.

Example

The following example shows the sysLib.errorLog() command:

  startLog("D:\\temp\\myLog.txt");
  errorLog("Test entry.");
The following example shows the contents of myLog.txt:
Dec 28, 2006 9:01:04 AM
Test entry.

Compatibility

Table 1. Compatibility considerations for errorLog()
Platform Issue
COBOL generation The errorLog() function is not supported.
JavaScript generation The errorLog() function is not supported.

Feedback