ErrorMessageLoggerWriteToSpecificEventLog Method

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

Definition

Namespace: FileHold.Common
Assembly: FileHold.Common (in FileHold.Common.dll) Version: 17.2.0.0
C#
public static void WriteToSpecificEventLog(
	Exception ex,
	string logSource,
	string logName
)

Parameters

ex  Exception
Exception that should be logged
logSource  String
Name of the log source; if it's null, the source name is Undefined by default
logName  String
Name of the log; if it's null, the name is FileHold by default

See Also