Click here to Skip to main content
13,301,619 members (66,529 online)
Click here to Skip to main content
Add your own
alternative version

Stats

38.8K views
1.2K downloads
10 bookmarked
Posted 24 Feb 2004

Writing messages to EventLog

, 24 Feb 2004
Rate this:
Please Sign up or sign in to vote.
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

serup
Software Developer (Senior) serupIT
Denmark Denmark
(BS.E.E)
I have been working with languages ranging from assembly 68000 to COBOL, OOC, MySQL, Perl, Java 8, JavaScript, C#, C++17, VC++ MFC and WinSockets.

I am currently working as a freelance software developer

You may also be interested in...

Pro

Comments and Discussions

 
Generalfollow up Pin
hanszeh13-Sep-07 17:48
memberhanszeh13-Sep-07 17:48 
AnswerRe: follow up Pin
Rajesh R Subramanian16-Sep-08 20:59
mvpRajesh R Subramanian16-Sep-08 20:59 
GeneralEvent Log Display Name Pin
hanszeh13-Sep-07 17:46
memberhanszeh13-Sep-07 17:46 
Generala Question Pin
YCW11-Mar-07 17:16
memberYCW11-Mar-07 17:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 25 Feb 2004
Article Copyright 2004 by serup
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid