diff 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
line wrap: on
line diff
--- a/Implab/Diagnostics/Trace.cs	Fri May 04 18:12:42 2018 +0300
+++ b/Implab/Diagnostics/Trace.cs	Fri May 25 19:15:26 2018 +0300
@@ -46,6 +46,16 @@
         }
 
         /// <summary>
+        /// Writes a debug message.
+        /// </summary>
+        /// <param name="format">Format.</param>
+        /// <param name="arguments">Arguments.</param>
+        [Conditional("DEBUG")]
+        public static void Debug(string format, params object[] arguments) {
+
+        }
+
+        /// <summary>
         /// Writes an informational message.
         /// </summary>
         /// <param name="format">Format.</param>
@@ -60,17 +70,19 @@
         /// </summary>
         /// <param name="format">Format.</param>
         /// <param name="arguments">Arguments.</param>
-        [Conditional("TRACE")]
         public static void Warn(string format, params object[] arguments) {
             TraceSource.TraceEvent(TraceEventType.Warning, 0, format, arguments);
         }
 
-        [Conditional("TRACE")]
+        /// <summary>
+        /// Writes a error message.
+        /// </summary>
+        /// <param name="format">Format.</param>
+        /// <param name="arguments">Arguments.</param>
         public static void Error(string format, params object[] arguments) {
             TraceSource.TraceEvent(TraceEventType.Error, 0, format, arguments);
         }
 
-        [Conditional("TRACE")]
         public static void Error(Exception err) {
             TraceSource.TraceData(TraceEventType.Error, 0, err);
         }