comparison Implab/Diagnostics/TraceEvent.cs @ 40:fe33f4e02ad5

improved tracing added text listeners (file,console)
author cin
date Tue, 15 Apr 2014 17:52:09 +0400
parents 313f708a50e9
children 3ba6778ed336
comparison
equal deleted inserted replaced
39:6498078ae368 40:fe33f4e02ad5
18 public TraceEvent(TraceEventType type, string message) { 18 public TraceEvent(TraceEventType type, string message) {
19 EventType = type; 19 EventType = type;
20 Message = message; 20 Message = message;
21 } 21 }
22 22
23 public override string ToString() {
24 return String.Format("{0}: {1}", EventType, Message);
25 }
26
23 public static TraceEvent Create(TraceEventType type, string format, params object[] args) { 27 public static TraceEvent Create(TraceEventType type, string format, params object[] args) {
24 return new TraceEvent(type, String.Format(format, args)); 28 return new TraceEvent(type, String.Format(format, args));
25 } 29 }
26 } 30 }
27 } 31 }