Click here to Skip to main content
Licence CPOL
First Posted 24 Feb 2004
Views 29,716
Bookmarked 10 times

Writing messages to EventLog

By | 24 Feb 2004 | Article
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)

About the Author

serup

Software Developer (Senior)
Nokia
Denmark Denmark

Member

(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

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalfollow up Pinmemberhanszeh16:48 13 Sep '07  
AnswerRe: follow up PinmvpRajesh R Subramanian19:59 16 Sep '08  
GeneralEvent Log Display Name Pinmemberhanszeh16:46 13 Sep '07  
Generala Question PinmemberYCW16:16 11 Mar '07  

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.

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