SysEventLog.Write

Syntax

Write(Message: String; eventType: SysEventType);

Parameters

Message. Event text.

eventType. Event category.

Description

The Write method creates a record in Windows event log.

Comments

The eventType parameter cannot be equal to Null.

Example

To execute the example, add a link to the Fore assembly.

Sub UserProc;
Var
    WinLog: ISysEventLog;
Begin
    WinLog := New SysEventLog.Create;
    WinLog.Write("Warning!", SysEventType.Warning);
End Sub UserProc;

After executing the example a record is added to Windows event log.

See also:

ISysEventLog