Share via


ExceptionHelpers.Log Method

Definition

Overloads

Log(Exception)
Log(Exception, EventLogEntryType)
Log(String, EventLogEntryType)
Log(Exception, String, EventLogEntryType)
Log(String, String, EventLogEntryType)
Log(String, String, EventLogEntryType, Int32, Int16)

Log(Exception)

public:
 static void Log(Exception ^ e);
public static void Log (Exception e);
static member Log : Exception -> unit
Public Shared Sub Log (e As Exception)

Parameters

Applies to

Log(Exception, EventLogEntryType)

public:
 static void Log(Exception ^ e, System::Diagnostics::EventLogEntryType t);
public static void Log (Exception e, System.Diagnostics.EventLogEntryType t);
static member Log : Exception * System.Diagnostics.EventLogEntryType -> unit
Public Shared Sub Log (e As Exception, t As EventLogEntryType)

Parameters

Applies to

Log(String, EventLogEntryType)

public:
 static void Log(System::String ^ msg, System::Diagnostics::EventLogEntryType t);
public static void Log (string msg, System.Diagnostics.EventLogEntryType t);
static member Log : string * System.Diagnostics.EventLogEntryType -> unit
Public Shared Sub Log (msg As String, t As EventLogEntryType)

Parameters

msg
String

Applies to

Log(Exception, String, EventLogEntryType)

public:
 static void Log(Exception ^ e, System::String ^ header, System::Diagnostics::EventLogEntryType t);
public static void Log (Exception e, string header, System.Diagnostics.EventLogEntryType t);
static member Log : Exception * string * System.Diagnostics.EventLogEntryType -> unit
Public Shared Sub Log (e As Exception, header As String, t As EventLogEntryType)

Parameters

header
String

Applies to

Log(String, String, EventLogEntryType)

public:
 static void Log(System::String ^ header, System::String ^ msg, System::Diagnostics::EventLogEntryType t);
public static void Log (string header, string msg, System.Diagnostics.EventLogEntryType t);
static member Log : string * string * System.Diagnostics.EventLogEntryType -> unit
Public Shared Sub Log (header As String, msg As String, t As EventLogEntryType)

Parameters

header
String
msg
String

Applies to

Log(String, String, EventLogEntryType, Int32, Int16)

public:
 static void Log(System::String ^ header, System::String ^ msg, System::Diagnostics::EventLogEntryType t, int eventId, short catagory);
public static void Log (string header, string msg, System.Diagnostics.EventLogEntryType t, int eventId, short catagory);
static member Log : string * string * System.Diagnostics.EventLogEntryType * int * int16 -> unit
Public Shared Sub Log (header As String, msg As String, t As EventLogEntryType, eventId As Integer, catagory As Short)

Parameters

header
String
msg
String
eventId
Int32
catagory
Int16

Applies to