GeneralFunctions.WriteToApplicationEventLog(String, EventLogEntryType) 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.
Writes to the application event log.
public:
static void WriteToApplicationEventLog(System::String ^ message, System::Diagnostics::EventLogEntryType type);
public static void WriteToApplicationEventLog (string message, System.Diagnostics.EventLogEntryType type);
static member WriteToApplicationEventLog : string * System.Diagnostics.EventLogEntryType -> unit
Public Shared Sub WriteToApplicationEventLog (message As String, type As EventLogEntryType)
Parameters
- message
- String
Specifies the message to log
- type
- EventLogEntryType
Specifies the log Type
Remarks
The intended purpose is to use this as a "last resort" for logging when some failure prevents from writing to listeners.