public static void IfTracing(TraceFlag flags, Action method) { if (TraceStream != null && ((TraceFlags & flags) != 0)) { method(); } }
public static void Trace(TraceFlag flags, bool newline, string description) { if (EnabledFags.HasFlag(flags)) { if (newline) { Debug.WriteLine(""); } Debug.WriteLine(description); } }
public static void LogTime(TraceFlag flags, bool newline, string description) { if (EnabledFags.HasFlag(flags)) { if (newline) { Debug.WriteLine(""); } Debug.Write("{0} - ", GetTimeString()); Trace(flags, false, description); } }
public static void Trace(TraceFlag flags, bool newline, string format, params object[] args) { Trace(flags, newline, string.Format(format, args)); }
public static void Trace(TraceFlag flags, string format, params object[] args) { Trace(flags, false, string.Format(format, args)); }
public static void LogTime(this TraceFlag @this, bool newline, string description) { }
public static void LogTime(this TraceFlag @this, bool newline, string format, params object[] args) { }
public static void Trace(this TraceFlag @this, string format, params object[] args) { }
public static void LogTime(this TraceFlag @this, bool newline, string description) { DebugTracing.LogTime(@this, newline, description); }
public static void LogTime(this TraceFlag @this, bool newline, string format, params object[] args) { DebugTracing.LogTime(@this, newline, format, args); }
public static void Trace(this TraceFlag @this, string format, params object[] args) { DebugTracing.Trace(@this, format, args); }
public static void LogTime(TraceFlag flags, bool newline, string description) { }
public static void LogTime(TraceFlag flags, string description) { }
public static void LogTime(TraceFlag flags, string format, params object[] args) { }
public static void LogTime(TraceFlag flags, string description) { LogTime(flags, false, description); }