anshdadhich commited on
Commit
b0d361b
·
verified ·
1 Parent(s): e3e4995

Upload FastSeekWpf/Core/Logger.cs

Browse files
Files changed (1) hide show
  1. FastSeekWpf/Core/Logger.cs +8 -1
FastSeekWpf/Core/Logger.cs CHANGED
@@ -16,9 +16,16 @@ public static class Logger
16
 
17
  public static void Log(string message)
18
  {
 
19
  try
20
  {
21
- File.AppendAllText(LogPath, $"[{DateTime.Now:HH:mm:ss.fff}] {message}{Environment.NewLine}");
 
 
 
 
 
 
22
  }
23
  catch { }
24
  }
 
16
 
17
  public static void Log(string message)
18
  {
19
+ string line = $"[{DateTime.Now:HH:mm:ss.fff}] {message}{Environment.NewLine}";
20
  try
21
  {
22
+ File.AppendAllText(LogPath, line);
23
+ }
24
+ catch { }
25
+ try
26
+ {
27
+ // Also write to console if available (CLI mode)
28
+ Console.Error.Write(line);
29
  }
30
  catch { }
31
  }