LogError
This extension writes an entry into the General Error Log file. The purpose for the percent signs is if you use this command in a global capacity and want to pass in parameters. Each percent sign is simply replaced with the next item in the Params list.
Group: Application-Based Extension
Syntax App.LogError(sProcedure, sErrDesc, [sParams])
sProcedure (String) is typically the application name
sErrDesc (String) is the ErrDesc entry
sParams (string array) Optional – these are parameters that will be substituted into the ErrDesc where a percent sign is used.
Example>
App.LogError("Application1", "Invalid Item")
Time..: 3/27/2006 1:37:55 PM
Process: Application1
ErrDesc: Invalid Item
App.LogError("Application1", "Invalid Item by user %", App.User)
Time..: 3/27/2006 1:37:55 PM
Process: Application1
ErrDesc: Invalid Item by user Sam
App.LogError("Application1", "Invalid Item % % % ", "1", "2", "3")
Time..: 3/27/2006 1:37:55 PM
Process: Application1
ErrDesc: Invalid Item 1 2 3
Version Supported: RFgen 4.0, 4.1, 5.0, 5.1, 5.2 and newer.