LogErrorEvent - cBaseWebComponent

Raises an error and explicitly logs the error in the event log

Type: Procedure

Parameters: Integer iErr String sText

ParameterDescription
iErrError number
sTextError text


Syntax
Procedure LogErrorEvent Integer iErr String sText

Call: Send LogErrorEvent iErr sText


Description

LogErrorEvent logs an error event. An error event generates a normal error and explicitly logs this error to the Web Application's event log. Events can be viewed using the DataFlex WebApp Server Administrator.

Normally, you do not need to use this message, since you can use the regular Error command to raise an error. Most errors are already automatically placed in the event log without any special programming on your part. This message should be used when you are sure the error should be added to the event log. If you are not logging an error event, do not use this message.