Example #1
0
 public void WriteErrorLog(string logMessage, TransactionContext context = null)
 {
     try
     {
         _queue.PublishLogMessage(GetLogMessage(logMessage, SEVERITY_ERROR, context));
     }
     catch
     {
         FailoverToWindowsEventLog(logMessage, null, EventLogEntryType.Error);
     }
 }