Changeset 6878 for branches/GeneralizedQAP/HeuristicLab.Core/3.3/Log.cs
- Timestamp:
- 10/05/11 21:55:55 (13 years ago)
- Location:
- branches/GeneralizedQAP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP
- Property svn:ignore
-
old new 1 *.docstates 2 *.psess 1 3 *.resharper 2 4 *.suo 5 *.vsp 3 6 Google.ProtocolBuffers-0.9.1.dll 7 HeuristicLab 3.3.5.1.ReSharper.user 8 HeuristicLab 3.3.6.0.ReSharper.user 4 9 HeuristicLab.4.5.resharper.user 5 10 HeuristicLab.resharper.user … … 8 13 _ReSharper.HeuristicLab 9 14 _ReSharper.HeuristicLab 3.3 15 _ReSharper.HeuristicLab.ExtLibs 16 bin 10 17 protoc.exe 11 HeuristicLab 3.3.5.1.ReSharper.user 12 *.psess 13 *.vsp 14 *.docstates 18 HeuristicLab.ExtLibs.6.0.ReSharper.user
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Core/3.3
- Property svn:ignore
-
old new 4 4 HeuristicLabCorePlugin.cs 5 5 *.vs10x 6 Plugin.cs
-
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Core/3.3/Log.cs
r6423 r6878 71 71 } 72 72 public virtual void LogMessage(string message) { 73 string s = DateTime.Now.ToString() + "\t" + message;73 string s = FormatLogMessage(message); 74 74 messages.Add(s); 75 75 CapMessages(); … … 77 77 } 78 78 public virtual void LogException(Exception ex) { 79 string s = DateTime.Now.ToString() + "\t" + "Exception occurred:" + Environment.NewLine + ErrorHandling.BuildErrorMessage(ex);79 string s = FormatException(ex); 80 80 messages.Add(s); 81 81 CapMessages(); … … 86 86 messages.RemoveAt(0); 87 87 } 88 } 89 protected virtual string FormatLogMessage(string message) { 90 return DateTime.Now.ToString() + "\t" + message; 91 } 92 protected virtual string FormatException(Exception ex) { 93 return DateTime.Now.ToString() + "\t" + "Exception occurred:" + Environment.NewLine + ErrorHandling.BuildErrorMessage(ex); 88 94 } 89 95
Note: See TracChangeset
for help on using the changeset viewer.