Click or drag to resize

SysUtilsReportErrorMessageToEventLog Method (String, String, Exception, EventLogEntryType)

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

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

Parameters

eventSource
Type: SystemString
The event source string. Needs to exist in order to successfully write to the event log.
addedMessage
Type: SystemString
The additional text that will prefix the error message.
exception
Type: SystemException
The exception object from which the error message is generated.
type (Optional)
Type: System.DiagnosticsEventLogEntryType
The event log entry type.
See Also