Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

windows-event-log-delphi-sample

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

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

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