Skip to content

LogEvent - cBaseWebComponent

Logs an event to the Web Application's event log

Type: Procedure

Parameters

Parameter Type Description
iEventType Integer Type of event to log
lpszEvent String Event name that is being logged

Syntax

Procedure LogEvent Integer iEventType String lpszEvent

Call Example

Send LogEvent iEventType lpszEvent

Description

LogEvent logs an event to the Web Application's event log. This is often used to log any type of non-error system activity. Events can be viewed using the DataFlex WebApp Server Administrator.

You should use this message to log any type of non-error activity to the error log. Errors should be added to the event log using the LogErrorEvent message. This message will generate an error and log the error to the event log. Most unexpected errors (program errors, syntax errors, etc.) are automatically placed in the event log without any special programming on your part.