Esempio n. 1
0
 ///<summary>
 /// Enable logging with the given logging level for instances of the given type or instances of types derived from the given type
 ///</summary>
 public static void EnableLogging <T>(LoggingLevel loggingLevel)
 {
     DebugLogger.EnableLogging(typeof(T), loggingLevel);
 }
Esempio n. 2
0
 private static void InternalWriteLine(object caller, LoggingLevel loggingLevel, Func <string> message)
 {
     DebugLogger.InternalDoIfLoggingEnabled(caller, loggingLevel, () => Debug.WriteLine($"{DebugLogger.GetCallerId(caller)}: {message()}"));
 }