mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 06:59:42 +02:00
25 lines
404 B
ObjectPascal
25 lines
404 B
ObjectPascal
{$mode objfpc}
|
|
{$h+}
|
|
{$ifdef win32}
|
|
{$r fclel.res}
|
|
{$endif}
|
|
|
|
program testelcmd;
|
|
|
|
uses eventlog;
|
|
|
|
Var
|
|
E : TEventType;
|
|
|
|
begin
|
|
With TEventLog.Create(Nil) do
|
|
Try
|
|
Identification:='Test eventlog class';
|
|
RegisterMessageFile('');
|
|
Active:=True;
|
|
For E:=etInfo to etDebug do
|
|
Log(E,'An event log message of type '+EventTypeToString(E));
|
|
finally
|
|
Free;
|
|
end;
|
|
end. |