Example #1
0
 public void WriteToLog(string exceptionName, params KeyValuePair <string, string>[] parameters)
 {
     if (parameters == null || parameters.Count() < 2)
     {
         return;
     }
     _azureStorage.SaveLogRecord(new LogRecord()
     {
         Messagetype = exceptionName,
         Title       = exceptionName,
         Message     = parameters[0].Value,
         StackTrace  = parameters[1].Value,
     });
 }