/// <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);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }