Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/TraceLog.cs @ 92:4c0e5ef99986 v2
rewritten tracing
author | cin |
---|---|
date | Wed, 22 Oct 2014 18:37:56 +0400 |
parents | 790e8a997d30 |
children | ea485487a424 |
comparison
equal
deleted
inserted
replaced
91:cdaaf4792c22 | 92:4c0e5ef99986 |
---|---|
12 /// контекстом трассировки. | 12 /// контекстом трассировки. |
13 /// </summary> | 13 /// </summary> |
14 public static class TraceLog { | 14 public static class TraceLog { |
15 [Conditional("TRACE")] | 15 [Conditional("TRACE")] |
16 public static void StartLogicalOperation() { | 16 public static void StartLogicalOperation() { |
17 TraceContext.Current.StartLogicalOperation(); | 17 TraceContext.Instance.StartLogicalOperation(); |
18 } | 18 } |
19 | 19 |
20 [Conditional("TRACE")] | 20 [Conditional("TRACE")] |
21 public static void StartLogicalOperation(string name) { | 21 public static void StartLogicalOperation(string name) { |
22 TraceContext.Current.StartLogicalOperation(name); | 22 TraceContext.Instance.StartLogicalOperation(name); |
23 } | 23 } |
24 | 24 |
25 [Conditional("TRACE")] | 25 [Conditional("TRACE")] |
26 public static void EndLogicalOperation() { | 26 public static void EndLogicalOperation() { |
27 TraceContext.Current.EndLogicalOperation(); | 27 TraceContext.Instance.EndLogicalOperation(); |
28 } | |
29 | |
30 [Conditional("TRACE")] | |
31 public static void BindLogicalOperationToPromise(IPromise promise) { | |
32 TraceContext.Current.BindLogicalOperationToPromise(promise); | |
33 } | 28 } |
34 | 29 |
35 [Conditional("TRACE")] | 30 [Conditional("TRACE")] |
36 public static void TraceInformation(string format, params object[] arguments) { | 31 public static void TraceInformation(string format, params object[] arguments) { |
37 LogChannel<TraceEvent>.Default.LogEvent(TraceEvent.Create(TraceEventType.Information, format, arguments)); | 32 LogChannel<TraceEvent>.Default.LogEvent(TraceEvent.Create(TraceEventType.Information, format, arguments)); |