/// <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);
     }
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
 /// <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);
 }