ErrorMessageLoggerWriteToEventLog(Exception, String, String, NullableTraceEventType) Method
Writes exception details in clear form to the EventViewer.
Uses EnterpriseLibrary classes.
Namespace: FileHold.CommonAssembly: FileHold.Common (in FileHold.Common.dll) Version: 17.2.0.0
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