public static async Task AppendErrorLogAsync(string filePath, TextLogInfo log) { if (log == null) { return; } if (!FileExists(filePath)) { await WriteAllTextAsync(filePath, string.Empty); } var builder = new StringBuilder(); builder.AppendLine(); builder.Append(log); builder.AppendLine(); await AppendAllTextAsync(filePath, builder.ToString()); }
private void Copy(TextLogInfo textLogInfo) { Clipboard.SetText(textLogInfo.Text); }