Export (0) Print
Expand All
3 out of 4 rated this helpful - Rate this topic

Logging Application, Server, and Security Events

Windows event logs allow your applications and components to record information about important events. You can use these records to audit access to your system, troubleshoot problems, and re-create usage patterns.

Using the EventLog component and language features in Visual Studio .NET or the .NET Framework, you can easily connect to Windows event logs on both local and remote computers and write entries to these logs. You can also read entries from existing logs and create your own custom event logs on computers that have Windows 2000 or Windows NT installed.

In This Section

Introduction to the EventLog Component
Provides basic information on event log features.
Administering Event Logs
Suggests additional topics on deleting event logs and performing administrative tasks on event logs.
Creating EventLog Component Instances
Gives directions for creating and configuring EventLog component instances in your projects.
Writing Entries to Event Logs
Gives directions for configuring your component to write entries to event logs.
Reading Event Log Entries
Gives directions for reading event log entries.
Handling the EntryWritten Event
Describes how to create event handlers for your EventLog components that automatically call a procedure when an entry is written to a log.
Working with Event Logs in Server Explorer
Gives directions for using Server Explorer to investigate the event logs on a computer.
Security Ramifications of Event Logs
Describes the effects of event log interactions on application security.
Walkthrough: Exploring Event Logs, Event Sources, and Entries
Presents step by step instructions on how to use the basic features of the EventLog component and language features.

Related Sections

EventLog Programming Architecture
Describes the language elements used in EventLog component programming.
Programming with Components
Presents a high-level overview of component programming and authoring.
EventLog Members
Describes the major features of the EventLog class.
Creating Installation Components
Describes how to use the Add Installer link in the Properties window to add an installation component to applications with EventLog component instances.
Visual Basic and Visual C# Projects
Describes the projects types used in this chapter and how to choose between them.
Deploying Applications and Components
Lists the major deployment topics and the information they contain.
Discusses best practices for managing distributed applications.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.