comparison Implab/Diagnostics/TraceEvent.cs @ 52:edf0bc558596

improved trace system
author cin
date Mon, 05 May 2014 07:35:48 +0400
parents 7c2369f580b8
children dc4942d09e74
comparison
equal deleted inserted replaced
51:2c332a9c64c0 52:edf0bc558596
19 EventType = type; 19 EventType = type;
20 Message = message; 20 Message = message;
21 } 21 }
22 22
23 public override string ToString() { 23 public override string ToString() {
24 return String.Format("{0}: {1}", EventType, Message); 24 if (EventType == TraceEventType.Information)
25 return Message;
26 else
27 return String.Format("{0}: {1}", EventType, Message);
25 } 28 }
26 29
27 public static TraceEvent Create(TraceEventType type, string format, params object[] args) { 30 public static TraceEvent Create(TraceEventType type, string format, params object[] args) {
28 return new TraceEvent(type, format == null ? String.Empty : String.Format(format, args)); 31 return new TraceEvent(type, format == null ? String.Empty : String.Format(format, args));
29 } 32 }