Skip to content

LogEvent - cWebApp

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 Administration tool.

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.

See Error Handling Messages for more on queued errors.

Note: This is an abstract interface which does nothing at this level. It is expected that this message will be augmented in subclasses to provide the required functionality.