65.9K
CodeProject is changing. Read more.
Home

Writing messages to EventLog

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.28/5 (10 votes)

Feb 25, 2004

CPOL
viewsIcon

43857

downloadIcon

1280

A Wrapper class to handle writing to EventLog

Sample Image - ReportInEventLog.jpg

Sample screenshot

Introduction

When your program development is at a hault, you need some help to find out where your errors are, and a smart way is to debug your code, however sometimes your code can be large and it only fails sometimes. What you need is a log of Errors which you know are real errors. Instead of logging into a flat file and then loose it, you can log to the windows service EventLog.

CReportInEventLog class is a simple way of handling writting to the EventLog service.