Click here to Skip to main content
Click here to Skip to main content

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) Nokia
Denmark Denmark
(BS.E.E)
I have been working with languages ranging from assembly 68000 to COBOL, OOC, MySQL, Perl, VC++ MFC and WinSockets.
 
I am currently working as a senior software architect at Nokia Mobile Phones Denmark
Follow on   Google+

Comments and Discussions

 
Generalfollow up Pinmemberhanszeh13-Sep-07 16:48 
AnswerRe: follow up PinmvpRajesh R Subramanian16-Sep-08 19:59 
GeneralEvent Log Display Name Pinmemberhanszeh13-Sep-07 16:46 
Generala Question PinmemberYCW11-Mar-07 16:16 

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

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

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 25 Feb 2004
Article Copyright 2004 by serup
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid