Exemplo n.º 1
0
        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);
 }