- Timestamp:
- 05/14/09 14:44:59 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Client.Common/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Common/3.2/HeuristicLab.Hive.Client.Common-3.2.csproj
r1534 r1802 100 100 <Name>HeuristicLab.PluginInfrastructure</Name> 101 101 </ProjectReference> 102 <ProjectReference Include="..\..\HeuristicLab.Tracing\3.2\HeuristicLab.Tracing-3.2.csproj"> 103 <Project>{EE2034D9-6E27-48A1-B855-42D45F69A4FC}</Project> 104 <Name>HeuristicLab.Tracing-3.2</Name> 105 </ProjectReference> 102 106 </ItemGroup> 103 107 <ItemGroup> -
trunk/sources/HeuristicLab.Hive.Client.Common/3.2/Logging.cs
r1798 r1802 25 25 using System.Text; 26 26 using System.Diagnostics; 27 using HeuristicLab.Tracing; 27 28 28 29 namespace HeuristicLab.Hive.Client.Common { … … 34 35 public class Logging { 35 36 private static Logging instance = null; 36 private EventLog eventLogger = null;37 38 37 /// <summary> 39 38 /// This is an implementation of the singleton design pattern. … … 65 64 /// <param name="message">the message</param> 66 65 public void Info(String source, String message) { 67 DateTime current = DateTime.Now; 68 Debug.WriteLine(current + " - " + source + ": " + message); 66 Logger.Info(source + ": " + message); 67 68 //DateTime current = DateTime.Now; 69 ///Debug.WriteLine(current + " - " + source + ": " + message); 69 70 70 71 // eventLogger.Source = source; … … 79 80 /// <param name="message">the message</param> 80 81 public void Error(String source, String message) { 81 DateTime current = DateTime.Now; 82 Debug.WriteLine(current + " - " + source + ": " + message); 82 Logger.Error(source + ": " + message); 83 84 //DateTime current = DateTime.Now; 85 //Debug.WriteLine(current + " - " + source + ": " + message); 83 86 84 87 //eventLogger.Source = source; … … 95 98 /// <param name="e">the exception</param> 96 99 public void Error(String source, String message, Exception e) { 97 DateTime current = DateTime.Now; 98 Debug.WriteLine(current + " - " + source + ": " + e + message); 100 Logger.Error(source + ": " + message, e); 101 //DateTime current = DateTime.Now; 102 //Debug.WriteLine(current + " - " + source + ": " + e + message); 99 103 // eventLogger.Source = source; 100 104 // eventLogger.WriteEntry(message +"\n" + e.ToString());
Note: See TracChangeset
for help on using the changeset viewer.