EverythingPowerToys/Debugger.cs

17 lines
469 B
C#
Raw Permalink Normal View History

#if DEBUG
using System;
2024-05-25 21:11:41 +08:00
using System.IO;
namespace Community.PowerToys.Run.Plugin.Everything
{
internal static class Debugger
{
private static readonly string FilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "EverythingPT.log");
public static void Write(string message)
{
using StreamWriter writer = new(FilePath, true);
writer.WriteLine(message);
}
}
}
#endif