ErrorMessageLoggerWriteToEventLog(Exception, String, String, NullableTraceEventType) Method

Writes exception details in clear form to the EventViewer. Uses EnterpriseLibrary classes.

Definition

Namespace: FileHold.Common
Assembly: FileHold.Common (in FileHold.Common.dll) Version: 17.2.0.0
C#
public static void WriteToEventLog(
	Exception ex,
	string title,
	string message = null,
	TraceEventType? eventType = null
)

Parameters

ex  Exception
Exception that should be logged
title  String
Log title
message  String  (Optional)
Message
eventType  NullableTraceEventType  (Optional)
Event type

See Also