Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/Trace.cs @ 280:f07be402ab02 v3
Added Trace<T>.Debug(...) method for debug messages
Added ContainerBuilde.LoadConfig(Uri) method
author | cin |
---|---|
date | Fri, 25 May 2018 19:15:26 +0300 |
parents | b00441e04738 |
children | e0916ddc9950 |
comparison
equal
deleted
inserted
replaced
279:8714471e8d78 | 280:f07be402ab02 |
---|---|
44 public static void StopLogicalOperation() { | 44 public static void StopLogicalOperation() { |
45 Trace.CorrelationManager.StopLogicalOperation(); | 45 Trace.CorrelationManager.StopLogicalOperation(); |
46 } | 46 } |
47 | 47 |
48 /// <summary> | 48 /// <summary> |
49 /// Writes a debug message. | |
50 /// </summary> | |
51 /// <param name="format">Format.</param> | |
52 /// <param name="arguments">Arguments.</param> | |
53 [Conditional("DEBUG")] | |
54 public static void Debug(string format, params object[] arguments) { | |
55 | |
56 } | |
57 | |
58 /// <summary> | |
49 /// Writes an informational message. | 59 /// Writes an informational message. |
50 /// </summary> | 60 /// </summary> |
51 /// <param name="format">Format.</param> | 61 /// <param name="format">Format.</param> |
52 /// <param name="arguments">Arguments.</param> | 62 /// <param name="arguments">Arguments.</param> |
53 [Conditional("TRACE")] | 63 [Conditional("TRACE")] |
58 /// <summary> | 68 /// <summary> |
59 /// Writes a warning message. | 69 /// Writes a warning message. |
60 /// </summary> | 70 /// </summary> |
61 /// <param name="format">Format.</param> | 71 /// <param name="format">Format.</param> |
62 /// <param name="arguments">Arguments.</param> | 72 /// <param name="arguments">Arguments.</param> |
63 [Conditional("TRACE")] | |
64 public static void Warn(string format, params object[] arguments) { | 73 public static void Warn(string format, params object[] arguments) { |
65 TraceSource.TraceEvent(TraceEventType.Warning, 0, format, arguments); | 74 TraceSource.TraceEvent(TraceEventType.Warning, 0, format, arguments); |
66 } | 75 } |
67 | 76 |
68 [Conditional("TRACE")] | 77 /// <summary> |
78 /// Writes a error message. | |
79 /// </summary> | |
80 /// <param name="format">Format.</param> | |
81 /// <param name="arguments">Arguments.</param> | |
69 public static void Error(string format, params object[] arguments) { | 82 public static void Error(string format, params object[] arguments) { |
70 TraceSource.TraceEvent(TraceEventType.Error, 0, format, arguments); | 83 TraceSource.TraceEvent(TraceEventType.Error, 0, format, arguments); |
71 } | 84 } |
72 | 85 |
73 [Conditional("TRACE")] | |
74 public static void Error(Exception err) { | 86 public static void Error(Exception err) { |
75 TraceSource.TraceData(TraceEventType.Error, 0, err); | 87 TraceSource.TraceData(TraceEventType.Error, 0, err); |
76 } | 88 } |
77 | 89 |
78 /// <summary> | 90 /// <summary> |