//using System; //using System.Diagnostics; //namespace WalkingTec.Mvvm.Core //{ // /// // /// LogDebug 只有定义了DEBUG常量才会生效,可以理解为只在Debug模式下才会输出 // /// // public sealed class LogDebug // { // /// // /// Debug // /// // /// // /// // [Conditional("DEBUG")] // public static void Debug(string message, Exception ex = null) // { // LogTrace.Debug(message, ex); // } // /// // /// Info // /// // /// // /// // [Conditional("DEBUG")] // public static void Info(string message, Exception ex = null) // { // LogTrace.Info(message, ex); // } // /// // /// Warn // /// // /// // /// // [Conditional("DEBUG")] // public static void Warn(string message, Exception ex = null) // { // LogTrace.Warn(message, ex); // } // /// // /// Error // /// // /// // /// // [Conditional("DEBUG")] // public static void Error(string message, Exception ex = null) // { // LogTrace.Error(message, ex); // } // /// // /// Fatal // /// // /// // /// // [Conditional("DEBUG")] // public static void Fatal(string message, Exception ex = null) // { // LogTrace.Fatal(message, ex); // } // } //}