Share via


GeneralFunctions.WriteToApplicationEventLog(String, EventLogEntryType) Method

Definition

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.

Applies to