gagaddji2

This commit is contained in:
jess 2026-04-23 07:51:45 -07:00
parent bbf2f1a124
commit 31444d2aa9
1 changed files with 5 additions and 1 deletions

View File

@ -51,7 +51,11 @@ public partial class App : Application
try try
{ {
var path = Path.Combine(Path.GetTempPath(), "layers-shell.log"); var path = Path.Combine(Path.GetTempPath(), "layers-shell.log");
File.AppendAllText(path, DateTime.Now.ToString("HH:mm:ss.fff ") + line + Environment.NewLine); var text = DateTime.Now.ToString("HH:mm:ss.fff ") + line + Environment.NewLine;
using var fs = new FileStream(path, FileMode.Append, FileAccess.Write, FileShare.Read);
var bytes = System.Text.Encoding.UTF8.GetBytes(text);
fs.Write(bytes, 0, bytes.Length);
fs.Flush(flushToDisk: true);
} }
catch { } catch { }
} }