Similar to the gs.log() method, the gs.logError() method logs a message to the system log and saves it to the syslog_table; however, it categorizes the message as an error.
Usage:
gs.logError(String message, [String source]); //source parameter is optional
Example:
gs.logError("Business rule execution failed", "DemoBusinessRule");