Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc / usr / share / doc / fpc-3.0.0 / fcl-base / examples / tstelcmd.pp
Size: Mime:
{$mode objfpc}
{$h+}

program testelcmd;

uses eventlog,sysutils;

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.