/// <summary> /// Write a status update to the event log. /// </summary> static public void WriteEvent(string Message) { if (Message != null && Message.Length > 2) { Log.Print("[STATUS] " + Message); } }
/// <summary> /// Constructor: set up a landing zone directory /// </summary> /// <param name="DirectoryToUse">Directory to store the WER sub-directories</param> /// <param name="Log">Optional file to write messages to</param> public LandingZoneMonitor(string DirectoryToUse, CrashReportCommon.LogWriter Log) { Directory = DirectoryToUse; LogFile = Log; DirectoryInfo DirInfo = new DirectoryInfo(Directory); if (DirInfo.Exists) { ReadMemorizedReceivedReports(); MemorizeReceivedReports(); } else { DirInfo.Create(); } LogFile.Print("Landing zone: " + DirectoryToUse); }
/// <summary> /// Write a status update to the event log. /// </summary> /// <param name="Message">A string containing the status update.</param> static public void WriteEvent(string Message) { // Status messages go to the log file and/or console Log.Print("[STATUS] " + Message); }