Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System.Diagnostics
EventLog Class
EventLog Methods
WriteEntry Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.NET Framework Class Library
EventLog.WriteEntry Method

Writes an entry in the event log.

Name Description
EventLog.WriteEntry (String) Writes an information type entry, with the given message text, to the event log.
EventLog.WriteEntry (String, EventLogEntryType) Writes an error, warning, information, success audit, or failure audit entry with the given message text to the event log.
EventLog.WriteEntry (String, String) Writes an information type entry with the given message text to the event log, using the specified registered event source.
EventLog.WriteEntry (String, EventLogEntryType, Int32) Writes an entry with the given message text and application-defined event identifier to the event log.
EventLog.WriteEntry (String, String, EventLogEntryType) Writes an error, warning, information, success audit, or failure audit entry with the given message text to the event log, using the specified registered event source.
EventLog.WriteEntry (String, EventLogEntryType, Int32, Int16) Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log.
EventLog.WriteEntry (String, String, EventLogEntryType, Int32) Writes an entry with the given message text and application-defined event identifier to the event log, using the specified registered event source.
EventLog.WriteEntry (String, EventLogEntryType, Int32, Int16, Byte[]) Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log, and appends binary data to the message.
EventLog.WriteEntry (String, String, EventLogEntryType, Int32, Int16) Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log, using the specified registered event source. The category can be used by the Event Viewer to filter events in the log.
EventLog.WriteEntry (String, String, EventLogEntryType, Int32, Int16, Byte[]) Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log (using the specified registered event source) and appends binary data to the message.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker