- Timestamp:
- 05/14/09 14:12:17 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Common/3.2/Logging.cs
r1775 r1798 56 56 57 57 private Logging() { 58 eventLogger = new EventLog("Hive Client");58 //eventLogger = new EventLog("Hive Client"); 59 59 } 60 60 … … 65 65 /// <param name="message">the message</param> 66 66 public void Info(String source, String message) { 67 eventLogger.Source = source; 68 eventLogger.WriteEntry(message); 69 eventLogger.Close(); 67 DateTime current = DateTime.Now; 68 Debug.WriteLine(current + " - " + source + ": " + message); 69 70 // eventLogger.Source = source; 71 // eventLogger.WriteEntry(message); 72 // eventLogger.Close(); 70 73 } 71 74 … … 76 79 /// <param name="message">the message</param> 77 80 public void Error(String source, String message) { 78 eventLogger.Source = source; 81 DateTime current = DateTime.Now; 82 Debug.WriteLine(current + " - " + source + ": " + message); 83 84 //eventLogger.Source = source; 79 85 //, EventLogEntryType.Error 80 eventLogger.WriteEntry(message);81 eventLogger.Close();86 //eventLogger.WriteEntry(message); 87 //eventLogger.Close(); 82 88 } 83 89 … … 89 95 /// <param name="e">the exception</param> 90 96 public void Error(String source, String message, Exception e) { 91 eventLogger.Source = source; 92 eventLogger.WriteEntry(message +"\n" + e.ToString()); 93 eventLogger.Close(); 97 DateTime current = DateTime.Now; 98 Debug.WriteLine(current + " - " + source + ": " + e + message); 99 // eventLogger.Source = source; 100 // eventLogger.WriteEntry(message +"\n" + e.ToString()); 101 // eventLogger.Close(); 94 102 } 95 103 }
Note: See TracChangeset
for help on using the changeset viewer.