Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/TraceEvent.cs @ 43:7c2369f580b8
improved tracing, TextListenerBase can be bound to logical operation scope.
author | cin |
---|---|
date | Wed, 16 Apr 2014 10:12:56 +0400 |
parents | 3ba6778ed336 |
children | edf0bc558596 |
comparison
equal
deleted
inserted
replaced
42:3ba6778ed336 | 43:7c2369f580b8 |
---|---|
23 public override string ToString() { | 23 public override string ToString() { |
24 return String.Format("{0}: {1}", EventType, Message); | 24 return String.Format("{0}: {1}", EventType, Message); |
25 } | 25 } |
26 | 26 |
27 public static TraceEvent Create(TraceEventType type, string format, params object[] args) { | 27 public static TraceEvent Create(TraceEventType type, string format, params object[] args) { |
28 return new TraceEvent(type, String.Format(format ?? String.Empty, args)); | 28 return new TraceEvent(type, format == null ? String.Empty : String.Format(format, args)); |
29 } | 29 } |
30 } | 30 } |
31 } | 31 } |