/windows-event-log-delphi-sample

this is a sample project demonstrates you how to use windows event logs with Delphi.

Primary LanguagePascalMIT LicenseMIT

Windows Event Log with Delphi

This is a sample project demonstrates you how to use windows event logs with Delphi.

About

SvcMgr.TEventLogger & TLogger (using Windows.ReportEvent)

You can add your logs to Windows Event Log with SvcMgr.TEventLogger and with TLogger Helper using Windows.ReportEvent.

Logging Example Code

Sample UI Screenshot

Sample project demonstrates you to log your events both way.

VCL Application UI

Register Your Application to Event Log via Registry

Important: If you are going to use WindowsEventLog, you should register your application when you are installing. This requires administrative rights.

Registry

Windows Event Log

Windows Event Log