Logger.LogEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| LogEvent(String, EventLogEntryType) | |
| LogEvent(Int32) | |
| LogEvent(Int32, String) |
LogEvent(String, EventLogEntryType)
public:
static void LogEvent(System::String ^ eventMsg, System::Diagnostics::EventLogEntryType type);
public static void LogEvent (string eventMsg, System.Diagnostics.EventLogEntryType type);
static member LogEvent : string * System.Diagnostics.EventLogEntryType -> unit
Public Shared Sub LogEvent (eventMsg As String, type As EventLogEntryType)
Parameters
- eventMsg
- String
- type
- EventLogEntryType
Applies to
LogEvent(Int32)
public:
static void LogEvent(int eventId);
public static void LogEvent (int eventId);
static member LogEvent : int -> unit
Public Shared Sub LogEvent (eventId As Integer)
Parameters
- eventId
- Int32