Event Logging in a .NET Web Service
page 2 of 4
by Sandesh Meda
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 54331/ 54

What is an Event Viewer?

Event Viewer is a Windows component that logs program, security and system events on your computer.  You can use the Event viewer to manage the event logs, gather information about the software problems and monitor system events.  To open the Event Viewer, go to Start -> Run -> eventvwr.

What are the different types of Logs?

There are typically 3 different types of logs.

·         Application Log - Applications running under Windows log their events in the Application Log.

·         Security Log - Windows logs security related events in the Security Log.

·         System Log - The Operating System logs in the System Log.

What are the different Event types?

The Event types are classified into the following different types.

·         Information - This type indicates a successful operation of an application.  An example is a successful loading of a new virus definition file by antivirus software.

·         Warning - This type indicates that there could be a potential problem in the future.  The entries help in taking preventive measures.

·         Error - This type indicates a significant problem.  It lets us know if there was a failure in a critical task.

·         Success Audit - This type indicates that an audited security event is successfully completed. For example, when a user authenticates successfully, there may be an entry of this type.

·         Failure Audit - This type indicates that there was a failure of an audited security event.

View Entire Article

User Comments

Title: Where is the implementation   
Name: Enasr
Date: 2011-11-21 6:22:42 AM
i read the article before but now its without any implementation why
Title: clarification   
Name: phani
Date: 2011-03-02 1:59:31 AM
where should i write the code for the function WriteToEventLog which is being called by Catch Block
Title: Sample is very good   
Name: Rami
Date: 2009-11-02 10:17:57 AM
Ran it successfully using Visual Studio 2008.
Installed the DLL on 2003 server.
Used the OS CMD window to run the InstallUtil found under FRAMEWORK directroy of .NET 2 installtion.
Title: Customer Installations   
Name: Dennis Jakobsen
Date: 2007-11-22 4:54:46 AM

Thanks for the example, i was running into that exact SecurityException for my Web Service. But how would i a customer install? I obviously can't take my Visual Studio Command Prompt!
Title: sample good   
Name: Lee Peace
Date: 2007-06-20 10:23:07 PM
Thanks for this sample !

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-13 8:50:20 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search