SysUtilsReportErrorMessageToEventLog(String, String, Exception, EventLogEntryType) Method

Reports the exception with a prefix message to the windows event log.

Definition

Namespace: MFiles.VAF.Common
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public static void ReportErrorMessageToEventLog(
	string eventSource,
	string addedMessage,
	Exception exception,
	EventLogEntryType type = EventLogEntryType.Error
)

Parameters

eventSource  String
The event source string. Needs to exist in order to successfully write to the event log.
addedMessage  String
The additional text that will prefix the error message.
exception  Exception
The exception object from which the error message is generated.
type  EventLogEntryType  (Optional)
The event log entry type.

See Also