示例#1
0
        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));
            }
        }
示例#2
0
 private static bool AbortWatch()
 {
     return(File.Exists(RuntimeHelper.MapToCurrentExecutionLocation("abort.txt")));
 }