private static string BuildBody(ExceptionLog log)
{
StringBuilder bodyBuilder = new StringBuilder();
bodyBuilder.AppendLine("Error : \n");
bodyBuilder.AppendLine($"Happened at : {DateTime.Now.ToShortDateString()}!\n");
bodyBuilder.AppendLine($"Causing exception : {log.Exception.ToString()}!\n");
bodyBuilder.AppendLine("Short description : \n");
bodyBuilder.AppendLine($"\t Message: {log.Exception.Message} \n");
bodyBuilder.AppendLine($"\t Data: {log.Exception.Data} \n");
bodyBuilder.AppendLine($"\t Stack trace: {log.Exception.StackTrace} \n");
bodyBuilder.AppendLine($"\t Inner exception: {log.GetCausingException(log.Exception).StackTrace} \n");
return bodyBuilder.ToString();
}