This is a discussion on Create EventLog and put log entries in C#.NET within the C# Programming forums, part of the Software Development category; Creating Event Log in Windows service. Goals: This project is used to create an eventlog in Windows Service using C#. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Creating Event Log in Windows service. Goals: This project is used to create an eventlog in Windows Service using C#. Steps: 1) Create a C# windows service. 2) Copy the following code. if (!EventLog.SourceExists("DcRawImage")) { EventLog.CreateEventSource("DcRawImage", "DcRawImage"); } eventLog = new EventLog("DcRawImage", Environment.MachineName, "DcRawImage"); eventLog.WriteEntry("Service Started"); 3) run the service. |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/c-programming/2277-create-eventlog-put-log-entries-c-net.html | |||
| Posted By | For | Type | Date |
| Create EventLog and put log entries in C#.NET | Web Hosting | This thread | Refback | 01-24-2008 02:21 PM |