Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/TraceEvent.cs @ 133:6c49d02a9a05 v2
sync
author | cin |
---|---|
date | Mon, 09 Feb 2015 00:28:13 +0300 |
parents | dc4942d09e74 |
children | ea485487a424 |
comparison
equal
deleted
inserted
replaced
132:5fb2bbffdece | 133:6c49d02a9a05 |
---|---|
16 EventType = type; | 16 EventType = type; |
17 Message = message; | 17 Message = message; |
18 } | 18 } |
19 | 19 |
20 public override string ToString() { | 20 public override string ToString() { |
21 return EventType == TraceEventType.Information ? Message : String.Format("{0}: {1}", EventType, Message); | 21 /*return EventType == TraceEventType.Information ? Message : String.Format("{0}: {1}", EventType, Message);*/ |
22 return Message; | |
22 } | 23 } |
23 | 24 |
24 public static TraceEvent Create(TraceEventType type, string format, params object[] args) { | 25 public static TraceEvent Create(TraceEventType type, string format, params object[] args) { |
25 return new TraceEvent(type, format == null ? String.Empty : String.Format(format, args)); | 26 return new TraceEvent(type, format == null ? String.Empty : String.Format(format, args)); |
26 } | 27 } |