ExceptionHelpers.Log 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
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