Logger.LogEvent Method

Definition

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

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

Applies to

LogEvent(Int32, String)

public:
 static void LogEvent(int eventId, System::String ^ msg);
public static void LogEvent (int eventId, string msg);
static member LogEvent : int * string -> unit
Public Shared Sub LogEvent (eventId As Integer, msg As String)

Parameters

eventId
Int32
msg
String

Applies to