static Logger() { var userFullName = RuntimeHelper.GetCurrentUserName().ReverseMe(); _logFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SysHealth", userFullName + "_error.log"); if (!Directory.Exists(Path.GetDirectoryName(_logFilePath))) { Directory.CreateDirectory(Path.GetDirectoryName(_logFilePath)); } }
private static bool AbortWatch() { return(File.Exists(RuntimeHelper.MapToCurrentExecutionLocation("abort.txt"))); }