Write(Message: String; eventType: SysEventType);
Message. Event text.
eventType. Event category.
The Write method creates a record in Windows event log.
The eventType parameter cannot be equal to Null.
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: